Help for this page

Select Code to Download


  1. or download this
    my @x = map { return $_; } (1,2,3);
    print "(@x)\n";
    
  2. or download this
    
    sub foo(&@) {
    ...
    #this outputs "(1 2 3)"
    my @x = foo { return $_; } (1, 2, 3);
    print "(@x)\n";