Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

RE: File Input and Output

by LeGo (Chaplain)
on Aug 02, 2000 at 18:02 UTC ( #25729=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (FILE, "file") || die "file could not be opened";
    
  2. or download this
    $file = "some_file.txt"; 
    open(FILE,"$file") or &Error($!); 
    
  3. or download this
    sub Error {
            $error = shift or $error = "unknown";
    ...
            print "Error:  $error";
            &End;
    }
    
  4. or download this
    close FILE or die "Could not close $file";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-04 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls