Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    # ic_cookies - sample CGI script that uses a cookie
    ...
          start_html("Ice Cookies, #2"),
          h1("Hello Ice Cream"),
          p("You chose as your favorite flavor `$favorite'.");
    
  2. or download this
    my $cookie = cookie(
                    -NAME    => $cookname,
                    -VALUE   => $favorite,
                    -EXPIRES => "+2y",
                );
    
  3. or download this
    print header(-COOKIE => $cookie),
          start_html("Ice Cookies, #2"),
          h1("Hello Ice Cream"),
          p("You chose as your favorite flavor `$favorite'.");