Help for this page

Select Code to Download


  1. or download this
    my $foo = "foo";
    print map {s/foo/bar/g; $_} do{$foo};
    print "\n$foo\n";
    
  2. or download this
    bar
    bar
    
  3. or download this
    my $foo = "foo";
    print map {s/foo/bar/g; $_} @{[$foo]};
    print "\n$foo\n";