I believe you might benefit from reading What is the simplest way to print a field, as in $3 does in awk.
HTH,
In reply to Re: perl and awk by planetscape in thread perl and awk by Anonymous Monk