Welcome to the Monastery | |
PerlMonks |
RE: Apply regex to entire file, not just individual lines ?by perlcgi (Hermit) |
on May 25, 2000 at 15:09 UTC ( [id://14729]=note: print w/replies, xml ) | Need Help?? |
Remember that if the unwanted stuff appears more than one per line you'll need a /g to match globally.
$lines =~s/^unwantedstuff//gsm
In Section
Seekers of Perl Wisdom
|
|