What you describe is expected behaviour. On the request where you set the cookie, you cannot also read the cookie. That's just how cookies work.
This is not Perl-specific: you'll see the same result writing CGI scripts in pretty much any language; you'll see the same in PHP, the same in Ruby on Rails.
In reply to Re: Perl + web cookies, not sure why this is failing
by tobyink
in thread Perl + web cookies, not sure why this is failing
by desertrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |