in reply to Inserting values into an array
Question is not clear.
With the assumption, i suggest push().
my @data; $/=""; while(<>) { $data=$_; push (@data, $data); print "@data\n"; }
Prasad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inserting values into an array
by Fletch (Bishop) on Jun 01, 2005 at 14:13 UTC | |
by prasadbabu (Prior) on Jun 01, 2005 at 14:23 UTC | |
by Fletch (Bishop) on Jun 01, 2005 at 14:32 UTC |