Perl Monk, Perl Meditation | |
PerlMonks |
Re: parse a stringby talexb (Chancellor) |
on May 03, 2002 at 14:46 UTC ( [id://163801]=note: print w/replies, xml ) | Need Help?? |
Something like
would probably work. The '$' anchors the pattern to the end of the string, and the brackets around the LastWord variable are to keep things in a list context. --t. alex "Nyahhh (munch, munch) What's up, Doc?" --Bugs Bunny
In Section
Seekers of Perl Wisdom
|
|