Please see What is the simplest way to print a field, as in $3 does in awk.
HTH,
In reply to Re: using fields in perl by planetscape in thread using fields in perl by Anonymous Monk