Help for this page

Select Code to Download


  1. or download this
    my @hashrefs = map { foo => $_ }, 1..5;
    
  2. or download this
            map {( "$foo$bar" => "barfoo" )} 1, ;      #no more syntax err
    +or :-)
            map +( "$foo$bar" => "barfoo" ), 1, ;      #note unary + 
                                                       #to avoid "function
    +-like" 
                                                       #interpretation of 
    +()