develooper Front page | perl.beginners | Postings from December 2002

regex

Thread Next
From:
tallison
Date:
December 16, 2002 11:33
Subject:
regex
Message ID:
13739.198.208.6.35.1040067168.squirrel@gandolf.tacocat.net
What is the difference between:

$arg = "foo \(bar\)";
and
$arg = 'foo \(bar\)';

when using like:

s/$arg/bleah/;

One works, one doesn't.
Why?



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About