in reply to array conversion

BTW,

push (my @newarray, ... );

can (or should) more clearly be written as

my @newarray = ... ;

because the push suggests that you're intending to add values to an already existing array. The my, OTOH, creates a new array every time you execute the statement, so the effect is the same as a simple assigment...

Replies are listed 'Best First'.
Re^2: array conversion
by senthil_v (Sexton) on Jun 08, 2011 at 10:08 UTC

    i want split the each line and will pushed into array.