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

Re: How do I write to a file?

by revdiablo (Prior)
on Jun 23, 2003 at 00:19 UTC ( #268012=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open FH, ">", $outfile or die "Error writing '$outfile': $!\n";
    print FH $output;
    close FH;
    
  2. or download this
    open my $filehandle, ">", $outfile or die "Error writing '$outfile': $
    +!\n";
    print $filehandle $output;
    close $filehandle;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2021-05-09 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (100 votes). Check out past polls.

    Notices?