in reply to Setting up cookie jar

I tried to set up directories on my C drive and on the local directory of the script. [...]

my $cookieFile = '/tmp/blatCookies';

Are you on unix or windows? /tmp/blatCookies will not, as a rule, be a valid path on windows (unless you're using Cygwin).

Replies are listed 'Best First'.
Re^2: Setting up cookie jar
by Anonymous Monk on Sep 10, 2014 at 09:43 UTC

    Are you on unix or windows? /tmp/blatCookies will not, as a rule, be a valid path on windows (unless you're using Cygwin).

    Windows likes relative paths just fine ... it may not exist, but windows likes it just fine :)

    use Path::Tiny qw/ tempfile /; my $cookieFile = tempfile();