in reply to How can you split inside pop?
I believe this is the most efficient method of finding the last word in the string.my $str = "this is a string"; print $str =~ m/\w+$/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How can you split inside pop?
by Anonymous Monk on Oct 15, 2003 at 05:22 UTC |