for $x (f .. j){ chomp(${$x} = ); } print "$f $g $h $i $j\n"; __DATA__ a b c d e