Help for this page

Select Code to Download


  1. or download this
    use strict;
    my @l = 1..10;
    map { 1, 2 }, @l;
    map { "$_", 2 }, @l;
    
  2. or download this
    print map { 1, 2 }, @l;
    print map { "$_", 2 }, @l;