in reply to Re^2: Inserting values into an array
in thread Inserting values into an array

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

Replies are listed 'Best First'.
Re^4: Inserting values into an array
by Fletch (Bishop) on Jun 01, 2005 at 14:32 UTC

    As you say you don't know, so don't cargo cult from their broken code. Give the simplest answer that works (but no simpler).

    --
    We're looking for people in ATL