Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 examining the Monastery: (4)
As of 2014-08-23 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls