laziness, impatience, and hubris | |
PerlMonks |
Re^3: Issue with matching regexby hippo (Bishop) |
on Oct 20, 2022 at 08:32 UTC ( [id://11147536]=note: print w/replies, xml ) | Need Help?? |
The even better news is that the original if condition can be much simplified and by combining the first 2 regexen it can avoid the fully empty pattern into the bargain:
Of course if we still have $var1 = '' then it will still match but that's a question for KishKishore as to what they actually intend. 🦛
In Section
Seekers of Perl Wisdom
|
|