@a = ; # diamond operator in "list" (or array) context # will read all input records into array elements chomp @a; # chomp can work on a list