in reply to http_cookie, cookies, extracting from $ENV variable set cookie question

I'm not sure about all the rest, but one old fashioned way to split this cookie that you take is like that: (although I encourage you to use CGI.pm)

my $cookie = $ENV{'HTTP_COOKIE'}; # if you wanna do this like that. @all = split(/\;/, $cookie); foreach (@all) { ($var, $value) = split(/=/); $values{$var} = $value; }

now you have a has called %values, from which you can call the username/password :

my $username = $values{'username'}; my $password = $values{'password'}; # now do whatever you want with them.
not sure why you're doing this like that though..