孤独的猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
#!/usr/bin/perl -w
sub sum_of_fred_and_barney {
  print "Hey,you called the sum_of_fred_and_barney subroutine!\n";
  $fred+$barney;
}

$fred=3;
$barney=4;
$wilma=&sum_of_fred_and_barney;
print "\$wilma is $wilma\n";
posted on 2011-04-24 12:57  孤独的猫  阅读(240)  评论(0编辑  收藏  举报