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