Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-04-28 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (515 votes), past polls