in reply to Question on File position, pulling words
Consider your variables are separated by space, then you can try like,
use strict; while(<DATA>){ chomp; print "IN:$&\n" if($_ =~/\s[^\s]+\s[^\s]+$/); }
Punitha
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Question on File position, pulling words
by taints169 (Initiate) on Mar 04, 2008 at 15:29 UTC |
In Section
Seekers of Perl Wisdom