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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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); } |
| |||
| 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? |
| ||||
| 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 > |