@array = map { EXPR } LIST; #### @array = (); foreach (LIST) { push @array, EXPR; } #### open (FH, "foo.txt"); my @words = map { split } ; close FH; print "@words\n"; #### open (FH, "foo.txt"); my @words; foreach () { push @words, split; } close FH; print "@words\n"; #### open (FH, "foo.txt"); my @words; while () { push @words, split; } close FH; print "@words\n";