Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: uninitialized value warning in reading file

by ant9000 (Monk)
on Jul 10, 2003 at 10:12 UTC ( #272930=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://272930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2021-12-09 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?