in reply to Pearls (not really) of Perl programming
my @lines; while (<>) { @lines = (@lines, $_); } [download]