in reply to Re: Regex match on implicit default variable ($_) in a script, not a one liner
in thread Regex match on implicit default variable ($_) in a script, not a one liner

or more compactly using the /r modifier : update: ($B is not needed)
$A =~ s/def\n//gr; print $A;
  • Comment on Re^2: Regex match on implicit default variable ($_) in a script, not a one liner
  • Download Code