Help for this page

Select Code to Download


  1. or download this
    $string =~ s/this/that/ig;
    ---
    RegEx re = new RegEx(/this/i);
    string = string.replace(re,"that","g");
    
  2. or download this
    %hash = (
       foo  => 'bar',
    ...
    hash.add("foo",  "bar");
    hash.add("ferd", "snodgrass");
    hash.lookup("thing");