Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 cooling their heels in the Monastery: (7)
As of 2014-07-26 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls