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
my $scalar = "abc\ndef\nghi\n"; print $1 . $3 if $scalar =~ /(.*)(\ndef)(.*)/s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex match on implicit default variable ($_) in a script, not a one liner
by Todd Chester (Scribe) on Oct 24, 2015 at 20:02 UTC |