![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: Delete stringsby almut (Canon) |
on Apr 10, 2009 at 08:09 UTC ( #756768=note: print w/replies, xml ) | Need Help?? |
/1\.0/ does a substring match; if you want to stop deleting only when the line contains nothing but "1.0", either use /^1\.0$/, or $_ eq "1.0\n".
In Section
Seekers of Perl Wisdom
|
|