in reply to Re^2: Submiting multiple cookies on a redirect - how?
in thread Submiting multiple cookies on a redirect - how?

$cookie = $query->cookie('H_VAL');

This code from your example retrieves the value of the cookie with name 'H_VAL' and stores that value in the scalar variable $cookie. It does not create a cookie. See the section of the CGI documentation which starts "To retrieve a cookie" for examples and clarity.