"be consistent" | |
PerlMonks |
Re^3: grep question using multiple linesby skx (Parson) |
on Dec 28, 2008 at 12:53 UTC ( [id://732883]=note: print w/replies, xml ) | Need Help?? |
Indeed your match is greedy. Still we can change it as follows: $ perl -nle 'print $1 while /constant=(^ +)\s/g' < test.txt barney@gmail.com wilma@aol.com
In Section
Seekers of Perl Wisdom
|
|