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