OK. got it worked by using the below code: -
use Scalar::Util 'looks_like_number'; my $result = looks_like_number('abc');
Do we have to import functions like this only? Else I have to do it for every function I import??
In reply to Re^5: Any improvement over the code possible??
by Rohit Jain
in thread Any improvement over the code possible??
by Rohit Jain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |