Perhaps use looks_like_number from Scalar::Util to check before you try to numify it? Besides that I think yes, you're going to have to do a { no warnings 'numeric'; ... }.
In reply to Re: Warning-free numerification of a string
by Fletch
in thread Warning-free numerification of a string
by oxone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |