Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: changing a portion of a line leaving its formatting intactby ikegami (Patriarch) |
on Dec 14, 2004 at 16:05 UTC ( [id://414746]=note: print w/replies, xml ) | Need Help?? |
If you want to match tree, but not tree2 (for example), try: Replaces 5th field:
Update: Added missing "$1 . ", as noticed by Animator. Removed unecesary if. Tested.
In Section
Seekers of Perl Wisdom
|
|