Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    for my $t (0 .. $#config){  # Your style (c-style for loop)
      print "$t:$config[$t];\n";
    }
    
  2. or download this
    @config = map {s/oldtext/newtext/g; $_; } @config;
    
  3. or download this
      map {s/oldtext/newtext/g; } @config;
    
  4. or download this
     s/oldtext/newtext/ for @config;