Chinaunix首页 | 论坛 | 博客
  • 博客访问: 30095
  • 博文数量: 11
  • 博客积分: 1624
  • 博客等级: 上尉
  • 技术积分: 140
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-29 11:07
文章分类

全部博文(11)

文章存档

2011年(1)

2010年(2)

2009年(8)

我的朋友
最近访客

分类:

2009-10-29 15:51:06

刚刚不知道为什么,文章没有了,只好重新发布:

#!/usr/bin/perl

use CGI qw/:standard/;
    use CGI::Cookie;

    # Create new cookies and send them

    my $cookie1 = new CGI::Cookie(-name=>'ID',-value=>123456);
    print header(-cookie=>$cookie1,-charset=>"gb2312");
    print start_html();
    my %cookies = fetch CGI::Cookie;
    my $id = $cookies{'ID'}->value;
    print h1($id);
    print end_html();


阅读(645) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~