Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: CGI::Carp fatalsToFile

by pryrt (Abbot)
on Oct 08, 2021 at 18:36 UTC ( [id://11137365]=note: print w/replies, xml ) Need Help??


in reply to Re^2: CGI::Carp fatalsToFile
in thread CGI::Carp fatalsToFile

Are you sure you're using getstore correctly? Per the LWP::Simple docs:

getstore

my $code = getstore($url, $file)

Gets a document identified by a URL and stores it in the file. The return value is the HTTP response code.

getstore desires a URL and a filename. Your code snippet shows $availability as being undefined.

Replies are listed 'Best First'.
Re^4: CGI::Carp fatalsToFile
by Bod (Parson) on Oct 08, 2021 at 18:47 UTC
    Are you sure you're using getstore correctly?

    No - I had read it as storing the document in a variable, not a file...

      per the example in the test suite, it's used as a file name: get.t#L62

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-04-19 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found