in reply to Setting up cookie jar

Maybe the script cannot write to /tmp/blatCookies?

Maybe you want to use a different file? Most likely, changing this line to something else will make the program use a different file:

my $cookieFile = '/tmp/blatCookies';