I am new to Perl and need help with my code. The following code will set cookies ok, but will not read them. Why not?
#!/perl/bin -w
use strict;
use CGI qwstandard);
my $cookie_in = ' ';
my $query = new CGI;
my $set_cookie1 = $query->cookie(-name=>"hotdog",
-value=>"2"
my $set_cookie2 = $query->cookie(-name=>"fries",
-value=>"3"
$cookie_in = $query->cookie("hotdog"
if ($cookie_in)
{ print "Value for hotdog in cookies: $cookie_in\n"; }
else
{ print "Can't find hotdog cookies.\n"; }
#!/perl/bin -w
use strict;
use CGI qwstandard);
my $cookie_in = ' ';
my $query = new CGI;
my $set_cookie1 = $query->cookie(-name=>"hotdog",
-value=>"2"
my $set_cookie2 = $query->cookie(-name=>"fries",
-value=>"3"
$cookie_in = $query->cookie("hotdog"
if ($cookie_in)
{ print "Value for hotdog in cookies: $cookie_in\n"; }
else
{ print "Can't find hotdog cookies.\n"; }