Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Creating file at run time

by kilinrax (Deacon)
on Nov 22, 2000 at 23:57 UTC ( [id://43006]=note: print w/replies, xml ) Need Help??


in reply to Creating file at run time

Change the prefix to the filename:
open (OUT, ">$inputfile.out") or die "cannot open file: $!\n";
This will open the file for output, creating it if it does not already exist. '+' gives you read and write access to a file, but it will only be created if you open the file for output or appending.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-18 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found