Fletch, i know that it is useless variable, i just changed his coding by just including push statement. The OP may use that useless variable later in useful way, which we don't know.
my @data; $/ = ''; while (<>){ push @data, $_; } print "@data";
Prasad
In reply to Re^3: Inserting values into an array
by prasadbabu
in thread Inserting values into an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |