googlesh "perl is_numeric" => http://www.perlmonks.org/?node_id=609478
qq{
Scalar::Util <http://search.cpan.org/perldoc?Scalar%3A%3AUtil> provides
access to the underlying Perl API looks_like_number routine which Perl
itself uses internally.
}

2011/11/29 Chris Stinemetz <chrisstinem...@gmail.com>

>  How can I check that the value assigned to $cell and $sector is numeric
> before I try to call the sprintf function?
>
> I am just trying to clear this warning.
>
> Argument "" isn't numeric in sprintf at ./rt_evdo_pcmd.pl line 139, <$FIN>
> line 119503.
>
> line 139 is from my program is below:
>
> my $c_s = sprintf("%d_%d",$cell,$sector);
>
> Thank you in advance.
>
> Chris
>

Reply via email to