in reply to Question on File position, pulling words
Are your variables delineated by whitespace?
To get the last two whitespace-delineated terms out of $_, say
my @last_two = /.*\s(\S+)\s+(\S+)/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question on File position, pulling words
by hipowls (Curate) on Mar 04, 2008 at 06:26 UTC | |
by Narveson (Chaplain) on Mar 04, 2008 at 07:11 UTC | |
by hipowls (Curate) on Mar 04, 2008 at 07:42 UTC |