Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How can i print to my outfile handle?

by Eliya (Vicar)
on Feb 20, 2011 at 23:23 UTC ( [id://889267]=note: print w/replies, xml ) Need Help??


in reply to How can i print to my outfile handle?

I can see three errors:

  • open(my OUT, ... should be open(my $OUT, ...  Or open(OUT, ....  Same for IN.

  • Your file name to open for output is a directory  ('/Users/mgavibrathwaite/Desktop/').  That doesn't work.

  • You're printing to STDOUT instead of to the $OUT file handle you tried to open.  That would be print $OUT "foo\n";

Log In?
Username:
Password:

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

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

    No recent polls found