Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: error using FileHandle Module

by atanug (Initiate)
on Dec 16, 2010 at 11:15 UTC ( #877475=note: print w/ replies, xml ) Need Help??


in reply to Re: error using FileHandle Module
in thread error using FileHandle Module

Try This one. This will work. use strict; use FileHandle; my $LOG = "log.txt"; my $fh = FileHandle->new(">> $LOG"); if (defined $fh) { print $fh "bar\n"; $fh->close; }


Comment on Re^2: error using FileHandle Module

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2016-02-11 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (374 votes), past polls