Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    my $str = sub { "params.$_[0].arg" };
    ...
    for my $idx (0..10) {
        do_something( $str->($idx) );
    }
    
  2. or download this
    params.0.arg
    params.1.arg
    ...
    params.8.arg
    params.9.arg
    params.10.arg