in reply to Re^3: Cookie->fetch problem
in thread Cookie->fetch problem

I did use the tags on the text. I guess you mean at every paragraph etc.

Where does data dumper dump data?

As a side issue, I looked at cookies in the firefox options and it showed three on my main page including the CGISESSID

I then looked at the cookies with the Firebug cookie panel and there were only two and unrecognizable in relation to the Firefox Options cookie viewer. Is there something obvious zi am missing?

Thanks

Replies are listed 'Best First'.
Re^5: Cookie->fetch problem
by kennethk (Abbot) on Mar 09, 2017 at 17:22 UTC
    A review of Basic debugging checklist may be helpful.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Re^5: Cookie->fetch problem
by Eily (Monsignor) on Mar 09, 2017 at 17:15 UTC
    I did use the tags on the text. I guess you mean at every paragraph etc.

    I mean that your post is hard to read because of the bad formatting. You'll be more likely to obtain an answer if people don't have to guess where the linebreaks are supposed to be.

    Where does data dumper dump data?

    It turns it into a string, actually valid perl code that compiles back into the dumped data. This means you get to see exactly what your data is. In your case, you'll see that wherever you look to see the output from warn

      Hi

      Never seen something like this in the error log before.

      Thu Mar 9 12:33:53 2017 manage_users.cgi: $VAR1 = {};

      Is that from data dumper?
        That is the output from Data::Dumper. You can see the cookies hash (aliased here to $VAR1) is empty. Otherwise, it might output something like:
        [Thu Mar 9 12:33:53 2017] manage_users.cgi: $VAR1 = {'CGISESSID' => '1 +234deadbeef'};

        For a quasi-independent test, what happens when you add the following to your code:

        use CGI; my $cgi = CGI->new; warn $_ for $q->cookie();
        and see if the CGI object has any cookies in it.

        #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

      Perhaps I am dense. It turns it into a string, actually valid perl code that compiles back into the dumped data.

      Where do I see the dumped data?