Help for this page

Select Code to Download


  1. or download this
    print map { "foo $_" } @list;
    print map({"foo $_"} @list);
    print map "foo $_", @list;
    print map("foo $_", @list);
    print map(sub { "foo $_" },@list); # this doesnt do what you think....
    
  2. or download this
    print map { sub { "foo $_" } } @list;