Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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.


0x596F752068617665206265656E2068657865642E

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662256]
help
Chatterbox?
[Eily]: can't the nodelet be moved though? Maybe you could put one that doesn't change first ("Sections" or "Find Nodes" for example)
[Eily]: "Other Users" seems like a poor choice :P
[Eily]: nope, Nodelet Settings doesn't let you move the XP Nodelet, CSS might
[marinersk]: That would mitigate the distraction/jangle issue, but then the information wouldn't be easy to find when it is populated. Plus, I don't currently see a way to move it, but I'm not done poking around on that point yet.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-05-29 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?