my @rtn = @cols[0,2]; #Grab the 1st and 3rd column print join(' # ',@rtn); print "\n";