http://qs321.pair.com?node_id=272930


in reply to uninitialized value warning in reading file

Use this construct for looping
while(defined($_=<FH>)){
and you should be fine.

Replies are listed 'Best First'.
Re: Re: uninitialized value warning in reading file
by tos (Deacon) on Jul 10, 2003 at 12:30 UTC
    Hi,

    as i understood it up to now there is no difference between (defined($_=<FH>)) and (<FH>).

    Have a look at man perlop, Page 33.

    Perhaps it could be useful if dannoura shows us an excerpt of his somefile.txt.

    greetings, tos