in reply to Inserting values into an array
while (<>) { push @data,$_; # adds $_ to the end of @data }
If you want to replace the whole array with the single paragrah, you can do:
while (<>) { @data = $_; }
You would probably also benefit from reading perldata.
|
|---|