in reply to NT paths and regexp
but then the eq won't work.$filename_b = "c:\\\\abc.log";
$filename_a = "c:\\abc.log"; $filename_b = "c:\\abc.log"; $filename_b_re = qr/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_re/ ; # output is 1
$filename_a = "c:/abc.log"; $filename_b = "c:/abc.log";
- Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NT paths and regexp
by Abigail-II (Bishop) on Sep 12, 2003 at 14:47 UTC | |
by tcf22 (Priest) on Sep 12, 2003 at 14:53 UTC |