[ comp.lang.perl is no longer a newsgroup. Please do not attempt
to post there.
]
Geoff Cox <Geoff> 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?
One idea would be to give us a short and complete program that we
can run that illustrats the problem you are having.
Have you seen the Posting Guidelines that are posted here frequently?
> 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);
> }
-----------------------------------------------
#!/usr/bin/perl
use warnings;
use strict;
my $path = 'docs/applied-business/as/classroom-notes/edexcel/unit2/bp';
if ( $path eq "docs/applied-business/as/classroom-notes/edexcel/unit2/bp")
{ print "bp\n" }
else
{ print "NO bp\n" }
$path = 'docs/applied-business/as/classroom-notes/edexcel/unit2/bplanning';
if ( $path eq "docs/applied-business/as/classroom-notes/edexcel/unit2/bplanning")
{ print "bplanning\n" }
else
{ print "NO bplanning\n" }
-----------------------------------------------
Works fine for me...
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas