Scalar value @F[6] better written as $F[6] at -e line 1. #### perl -0012 -ane "print join(' => ',@F[8,6]),qq~\n~ if @F[6]=~/cmd\.exe/" access.csv;