zsdc wrote: > R. Joseph Newton wrote: > > > "N, Guruguhan (GEAE, Foreign National, EACOE)" wrote: > > > >> @temp = <INPUT> ; > > > > Here is your immediate problem. The line above puts the first line of the file > > into the first element of @temp. If you must dump all your data into an array, > > then you will have to put the input operation into list context by enclosing it in > > parentheses: > > @temp = (<INPUT>); > > The assignment to array already provides the list context, so: > > @temp = <INPUT>; > > is equivalent to > > @temp = (<INPUT>); > > reading whole INPUT, and not: > > @temp = scalar <INPUT>; > > which would read one line of INPUT and store it in the first element of > one-element @temp array. > > -- > ZSDC
Thanks for the catch. I should have tested. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>