Keep It Simple, Stupid | |
PerlMonks |
Re: Shorthand for /^\s*abc\s*$/ ?by Athanasius (Archbishop) |
on Oct 11, 2015 at 13:13 UTC ( [id://1144425]=note: print w/replies, xml ) | Need Help?? |
I like AppleFritter’s approach. But, in the spirit of TMTOWTDI, here’s another, which builds the required regex via a subroutine call:
Output:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|