I kind of figured splitting on whitespace was the original objective, but I suggested unpack as what I thought might be a better alternative. However, split is pretty simple to use, so here's an example that pulls out the 2nd and 6th fields:
{ local $, = "\t"; print +(split)[1,5], $/ while <DATA>; }
HTH!
Dave
In reply to Re^3: awk like question in perl
by davido
in thread awk like question in perl
by drock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |