sub do_something { map{ $_ * 2 } @_ } print do_something 10; 20 print do_something 1..5; 2 4 6 8 10