Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: File Input and Output

by LeGo (Chaplain)
on Aug 02, 2000 at 18:02 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://25729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-18 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found