Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Printing to a File from Sub

by choroba (Archbishop)
on Aug 30, 2010 at 16:47 UTC ( #858046=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $fhout, '>', "./test_out.file" or die "$!";
    
  2. or download this
    open (my $fhout, '>', "./test_out.file") || die "$!";
    
  3. or download this
    open (my $fhout, '>', ("./test_out.file" || die "$!"));
    
  4. or download this
    my ($fhout) = @_;
    
  5. or download this
    my $fhout = shift;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-10-07 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (30 votes). Check out past polls.

    Notices?