Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Can't write files (even redirected from shell)

by Flame (Deacon)
on Jan 14, 2008 at 04:23 UTC ( #662256=note: print w/ replies, xml ) Need Help??

in reply to Re: Can't write files (even redirected from shell)
in thread Can't write files (even redirected from shell)

I no longer have the exact code, but it was along the lines of:

use IO::File; my $file = IO::File->new(">carddb.txt") or die $!;

And further down, where it says print STDERR $result; it read $file->print($result) or die $!;.

Ultimately, there was also a $file->close; at the end of the file too.

And thank you for the reminder about LWP::Simple::get_store, but I didn't actually want to keep the whole page.


Comment on Re^2: Can't write files (even redirected from shell)
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2015-11-27 00:57 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (710 votes), past polls