Help for this page

Select Code to Download


  1. or download this
    print a(\&do_something)->(1 .. 5);
    
  2. or download this
    print map do_something( $_ ) , 1 .. 5;
    
  3. or download this
    sub do_something { map{ $_ * 2 } @_ }
    
    ...
    
    print do_something 1..5;
    2 4 6 8 10