- or download this
@arr = (1, 2, 3, 4, 5);
map {print "** $_ **\n";} @arr;
- or download this
$ast_print = sub {print "** $_[0] **\n"};
process_and_print(25, $ast_print);
...
&$print_func($val);
}
- or download this
$op = "print \"hello\"";
eval $op;
- or download this
while (<>) { eval; print $@; }