Thanks for your time, moritz.
I tried using,
$user = $cookies{'USER'}->value;
but it does not work either. I use strict and warnings.
And your correct, it always print undef.
when I print the environmental variables, I found that cookie is not set.
Please let me know what else I need to check?
Thanks again.