Perl Monk, Perl Meditation | |
PerlMonks |
Re: extract the value before a particualr stringby space_monk (Chaplain) |
on Sep 05, 2013 at 10:12 UTC ( [id://1052536]=note: print w/replies, xml ) | Need Help?? |
If you don't like split, try regexes instead. Something like ...
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
In Section
Seekers of Perl Wisdom
|
|