method

gsub

v2_6_3 - Show latest stable - Class: Kernel
gsub(*args)
public

Equivalent to $_.gsub…, except that $_ will be updated if substitution occurs. Available only when -p/-n command line option specified.