摘要: do_code.plreturn sub {print "hello\n"};do_array.pl[1 2 3 4 5]do_hash.pl{a = 'hello', b = '你好', c = 'bonjour'}do_excute.pl#!/usr/bin/perl -wuse strict;use YAML::XS;my $code = do 'do_code';#y $code = eval `cat stat.pl`;my $ref = ref $code; print "$ref\n&q 阅读全文
posted @ 2012-11-30 14:01 Arya_yu 阅读(582) 评论(0) 推荐(0) 编辑