通过匿名散列创建C风格的struct结构

我们经常直接用匿名散列构造数据结构:

my $student = {
    last => 'Smith',
    first => 'John',
   bday  => '01/08/72'
};


$student->{last}  = 'Smith';

....
posted @ 2013-04-26 15:35  新闻官  阅读(133)  评论(0编辑  收藏  举报