Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Answer: How do i get EOF to work?

by zentara (Archbishop)
on Aug 17, 2002 at 22:20 UTC ( [id://190926]=note: print w/replies, xml ) Need Help??


in reply to Re: How do i get EOF to work?
in thread How do i get EOF to work?

I'm sure it's just a minor overlook, but the above code
gives me an error: "Uninitialized value in print....". 
#!/usr/bin/perl use warnings; use strict; my $file = "/etc/passwd"; open(PASSWD,"<$file") or die "Couldn't open $file: $!\n"; while (<PASSWD>){ print $_ unless eof PASSWD; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found