sub(pattern, replacement) â $_
sub(pattern) { block } â $_
sub(pattern) { block } â $_
Instance Public methods
Equivalent to $_.sub(args), except that
$_ will be updated if substitution occurs. Available only when
-p/-n command line option specified.
Please login to continue.