Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: opening a file destroys nulling entries in a list?!?!

by cfreak (Chaplain)
on Aug 07, 2003 at 02:56 UTC ( #281712=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub screwed {
      my ($in) = @_;
    ...
      while(<IN>) { print "file $in contains $_"; }
      close(IN);
    }
    
  2. or download this
    while(defined(my $foo = <IN>)) { print "file $in contains $foo"; }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://281712]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2016-12-05 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (89 votes). Check out past polls.