Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Efficient way to verify scalar contentsby BillKSmith (Monsignor) |
on Jun 22, 2020 at 14:51 UTC ( [id://11118369]=note: print w/replies, xml ) | Need Help?? |
Your "Do it yourself" approach can be simplified by testing the content before the length.
UPDATE: Corrected error in regex for special characters and added (below) a less terse version of the same logic
Bill
In Section
Seekers of Perl Wisdom
|
|