Perl-Sensitive Sunglasses | |
PerlMonks |
Re: What is the simplest way to print a field, as in $3 does in awkby jmcnamara (Monsignor) |
on Oct 23, 2001 at 15:46 UTC ( [id://120753]=note: print w/replies, xml ) | Need Help?? |
Use the -a switch to autosplit to @F.
or perl -lne 'print if /localhost/' /etc/hosts -- John.
In Section
Seekers of Perl Wisdom
|
|