Help for this page

Select Code to Download


  1. or download this
    my %replace = ('111'=>bar, '222'=>world, '333'=>perl);
    my $find = join "|", sort keys %replace;
    my $str = "f111,f222,f333";
    $str =~ s/f([0-9]+)/$replace{$1}/g;
    print "$str\n";
    
  2. or download this
    bar,world,perl