in reply to Re: regex for numbers
in thread regex for numbers

Perl happily accepts 0 + '1.1.' (well, it warns, but it doesn't throw an exception). So, eval alone isn't enough.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: regex for numbers
by haukex (Archbishop) on Apr 07, 2021 at 19:12 UTC