[Chicago-talk] ok im feeling a bit (lot) retarted
Andy_Bach at wiwb.uscourts.gov
Andy_Bach at wiwb.uscourts.gov
Wed Apr 21 14:16:50 CDT 2004
Yeah, If you want to replace the whole line just do:
$_ = "Address_v2\n";
Are you mixing
$_ =~ s/this/that/;
w/ your:
s/$_/Address_v2/; syntax?
The default string to work on is $_ if you have a s/// cmd by itself. so:
s/\Q$_\E/Address_v2/;
is like:
$_ = s/\Q$_\E/Address_v2/;
which is easier as:
$_ = "Address_v2";
Again, w/o testing, you may lose your trailing \n in the s/// form.
a
Andy Bach, Sys. Mangler
Internet: andy_bach at wiwb.uscourts.gov
VOICE: (608) 261-5738 FAX 264-5932
Why do programmers confuse Halloween and Christmas?
Because OCT 31 = DEC 25.
More information about the Chicago-talk
mailing list