Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

by davidrw (Prior)
on Jan 14, 2008 at 04:19 UTC ( #662253=note: print w/replies, xml ) Need Help??

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

Can you post the actual code that's trying to do the file open/writes?

(quick note: LWP::Simple::get_store is handy function too)
  • Comment on Re: Can't write files (even redirected from shell)

Replies are listed 'Best First'.
Re^2: Can't write files (even redirected from shell)
by Flame (Deacon) on Jan 14, 2008 at 04:23 UTC

    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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662253]
[Discipulus]: how I can tell in which perl version was included List::Util 1.29 ?
[Discipulus]: to specify use 5.0.x to be sure to have pairmap from the module..
[Corion]: Discipulus: I think Module::Corelist ( or corelist ) can tell you that

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-05-25 09:17 GMT
Find Nodes?
    Voting Booth?