Welcome to the Monastery | |
PerlMonks |
Re^2: Removing leading zerosby Anonymous Monk |
on Apr 22, 2019 at 15:07 UTC ( [id://1232867]=note: print w/replies, xml ) | Need Help?? |
That RE fails multiple edge cases. It will change "0", or "00", etc. into "" making it non-numeric. And not handling the negative case has already been mentioned.
In Section
Seekers of Perl Wisdom
|
|