Think about Loose Coupling | |
PerlMonks |
Re: List::MoreUtils before, after and ... between?by moritz (Cardinal) |
on Feb 21, 2012 at 15:00 UTC ( [id://955327]=note: print w/replies, xml ) | Need Help?? |
If you are sure that both regexes will be found, you can write something like this:
If one or both regexes might not match, you'd need to special-case undefined $from and $to.
In Section
Seekers of Perl Wisdom
|
|