
Zippy1970
Novice
Mar 4, 2013, 5:00 AM
Post #1 of 3
(17426 views)
|
s/// : Why doesn't this work?
|
Can't Post
|
|
my $str = '$1$'; my $key = '$1$ Hello World!'; $key =~ s/$str//; print "$key\n"; Output: $1$ Hello World! As you can see, it's not removing '$1$'. This behavior is new to me. What am I missing here?
(This post was edited by Zippy1970 on Mar 4, 2013, 5:00 AM)
|