Keep It Simple, Stupid | |
PerlMonks |
Re: How to awk a grep result in-scriptby hippo (Bishop) |
on Nov 14, 2019 at 18:51 UTC ( [id://11108691]=note: print w/replies, xml ) | Need Help?? |
How do I perform the equivalent of "awk {'print $1,$2,$8'}" in perl? Here is the answer to this particular question, although see haukex's reply (++) for some better approaches regarding the wider topic of shelling out.
Note that arrays in Perl by default start indexing from zero. Don't change this default unless you enjoy being hunted down by your co-developers.
In Section
Seekers of Perl Wisdom
|
|