my @lines; while (<>) { @lines = (@lines, $_); } [download]
In reply to Re: Pearls (not really) of Perl programming by itub in thread Pearls (not really) of Perl programming by PetaMem