in reply to Inserting values into an array
I think you want
or simplymy @data; $/=""; while(<>) { push @data, $_; }
my @data = <>;
Update: Edited in response to Joost's and Limbic~Region's comment. Once again I am humbled by how much Perl I still have to learn!
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inserting values into an array
by Joost (Canon) on Jun 01, 2005 at 14:05 UTC | |
by tlm (Prior) on Jun 01, 2005 at 14:11 UTC | |
by Limbic~Region (Chancellor) on Jun 01, 2005 at 14:16 UTC | |
by Joost (Canon) on Jun 01, 2005 at 14:18 UTC | |
by Limbic~Region (Chancellor) on Jun 01, 2005 at 14:20 UTC |