Unix Technical Forum

eq and =~ problem?

This is a discussion on eq and =~ problem? within the MySQL forums, part of the Database Server Software category; --> Hello, It would seem that the following code does not distinguish between the "bp" and the "bplanning". I thought ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:26 AM
Geoff Cox
 
Posts: n/a
Default eq and =~ problem?

Hello,

It would seem that the following code does not distinguish between the
"bp" and the "bplanning". I thought that using eq and not =~ would
work.

Any ideas please?

Cheers

Geoff

elsif ( $path eq
"docs/applied-business/as/classroom-notes/edexcel/unit2/bp" ) {
intro($path);
appliedbusinessclassroomnotesedexcelunit2bp($path) ;
}

elsif ( $path eq
"docs/applied-business/as/classroom-notes/edexcel/unit2/bplanning" ) {
intro($path);
appliedbusinessclassroomnotesedexcelunit2bplanning ($path);
}



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:26 AM
Paul Lautman
 
Posts: n/a
Default Re: eq and =~ problem?

Geoff Cox wrote:
> Hello,
>
> It would seem that the following code does not distinguish between the
> "bp" and the "bplanning". I thought that using eq and not =~ would
> work.
>
> Any ideas please?
>
> Cheers
>
> Geoff
>
> elsif ( $path eq
> "docs/applied-business/as/classroom-notes/edexcel/unit2/bp" ) {
> intro($path);
> appliedbusinessclassroomnotesedexcelunit2bp($path) ;
> }
>
> elsif ( $path eq
> "docs/applied-business/as/classroom-notes/edexcel/unit2/bplanning" ) {
> intro($path);
> appliedbusinessclassroomnotesedexcelunit2bplanning ($path);
> }


I've never seen anything like this in the MySQL manual?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 10:26 AM
Geoff Cox
 
Posts: n/a
Default Re: eq and =~ problem?

On Mon, 19 Mar 2007 22:01:53 -0000, "Paul Lautman"
<paul.lautman@btinternet.com> wrote:

>Geoff Cox wrote:
>> Hello,
>>
>> It would seem that the following code does not distinguish between the
>> "bp" and the "bplanning". I thought that using eq and not =~ would
>> work.
>>
>> Any ideas please?
>>
>> Cheers
>>
>> Geoff
>>
>> elsif ( $path eq
>> "docs/applied-business/as/classroom-notes/edexcel/unit2/bp" ) {
>> intro($path);
>> appliedbusinessclassroomnotesedexcelunit2bp($path) ;
>> }
>>
>> elsif ( $path eq
>> "docs/applied-business/as/classroom-notes/edexcel/unit2/bplanning" ) {
>> intro($path);
>> appliedbusinessclassroomnotesedexcelunit2bplanning ($path);
>> }

>
>I've never seen anything like this in the MySQL manual?


Paul,

OK - I assume you mean the question should be for another NG - eg the
Perl NG?

Geoff
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:38 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com