vorteks has asked for the wisdom of the Perl Monks concerning the following question:

Although I've been using Perl for 18 months, I've just started using cookies. I've managed to set a cookie but can't read it back with anything. I've read every thread to try and cure the problem but nothing posted works. Here's the ONLY scripting that works successfuly to set a cookie - everything else gives compilation errors, everything I've tried to read them back does the same too. I'd really appreciate some help with this stupid question as I've been on it for 3 days and read everything going!
#!/usr/bin/perl use CGI qw/:standard/; $user="user1"; $cookie1 = cookie(-name=>'user', -value=>'$user', -expires=>'+1h'); print header(-cookie=>$cookie1);