Help for this page

Select Code to Download


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