Almost correct, you need to anchor the regex at the end of the string.
my @last_two = $string =~ /(\S+)\s+(\S+)$/;
In reply to Re^2: Question on File position, pulling words
by hipowls
in thread Question on File position, pulling words
by taints169
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |