tent8f has asked for the wisdom of the Perl Monks concerning the following question:
if I remove the \\ from each string then output for both is 1. help or valium needed$filename_a = "c:\\abc.log"; $filename_b = "c:\\abc.log"; print "Are they equal ? : "; print $filename_a eq $filename_b ; # output is 1 print "\n"; print "Do they match ? : "; print $filename_a =~ /$filename_b/ ; # output is blank
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NT paths and regexp (\Q)
by tye (Sage) on Sep 12, 2003 at 17:05 UTC | |
|
Re: NT paths and regexp
by Abigail-II (Bishop) on Sep 12, 2003 at 14:43 UTC | |
|
Re: NT paths and regexp
by tcf22 (Priest) on Sep 12, 2003 at 14:43 UTC | |
by Abigail-II (Bishop) on Sep 12, 2003 at 14:47 UTC | |
by tcf22 (Priest) on Sep 12, 2003 at 14:53 UTC |