Thx Shawn. It's working. -----Original Message----- From: Mr. Shawn H. Corey [mailto:shawnhco...@magma.ca] Sent: Thursday, December 18, 2008 11:56 AM To: Gu, Han Cc: 'beginners@perl.org' Subject: RE: Trying to match window's path
On Thu, 2008-12-18 at 11:40 -0500, Gu, Han wrote: > Another question since I hit another snag on this, hopefully it's the last =) > > Sample --> > > $s2 = "c:\ise\conf\ise_eif_lvc.config"; You should always escape backslashes in literal strings: #!/usr/bin/perl use strict; use warnings; my $s1 = "c:\\ise\\conf\\ise_eif_lvc.config"; my $s2 = "c:\ise\conf\ise_eif_lvc.config"; print "\$s1 = '$s1'\n"; print "\$s2 = '$s2'\n"; __END__ -- Just my 0.00000002 million dollars worth, Shawn Believe in the Gods but row away from the rocks. -- ancient Hindu proverb -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/