Just another Perl shrine | |
PerlMonks |
Re^2: Find nonnumeric scalarsby Not_a_Number (Prior) |
on Jan 29, 2015 at 18:41 UTC ( [id://1114954]=note: print w/replies, xml ) | Need Help?? |
Scalars -7, 4.55, and 10e6 are all numeric. Your regex /^\d+$/ tests only for positive integers. Update: Minor tpyo
In Section
Seekers of Perl Wisdom
|
|