Perl Monk, Perl Meditation | |
PerlMonks |
Re: Remove from character to end of lineby CukiMnstr (Deacon) |
on Aug 01, 2002 at 16:50 UTC ( [id://186835]=note: print w/replies, xml ) | Need Help?? |
you have the s/// operator in perl. this should do what you want:
hope this helps, Update: even if the s/// works, split() is faster:
Update: ++Abigail-II. I need to work on my golfing skills... ;)
In Section
Seekers of Perl Wisdom
|
|