method

sub

v1_9_3_392 - Show latest stable - Class: Kernel
sub(*args)
public

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