No such thing as a small change | |
PerlMonks |
Re: OptiPerls Pattern Replace (Regexpses for one Line)by tphyahoo (Vicar) |
on Mar 02, 2005 at 09:44 UTC ( [id://435742]=note: print w/replies, xml ) | Need Help?? |
Never heard of OptiPerl.
If you read your code in line by line, which is the normal way in perl, the special variable $_ matches the current line automatically, so you don't need a regex to match it. Or, I guess, ^.*$ will also match an entire line if you have to use a regex. Or blah.*$ will match everything from the first blah out to the end of the line. Or maybe you could rephrase the question if that isn't quite what you wanted.
In Section
Seekers of Perl Wisdom
|
|