Re: sprintf function

2011-11-29 Thread Dr.Ruud
On 2011-11-29 14:49, Chris Stinemetz wrote: 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

Re: sprintf function

2011-11-29 Thread John W. Krahn
Chris Stinemetz wrote: 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

Re: sprintf function

2011-11-29 Thread Shlomi Fish
Hi Chris, On Tue, 29 Nov 2011 07:49:37 -0600 Chris Stinemetz wrote: > 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

Re: sprintf function

2011-11-29 Thread Igor Dovgiy
googlesh "perl is_numeric" => http://www.perlmonks.org/?node_id=609478 qq{ Scalar::Util provides access to the underlying Perl API looks_like_number routine which Perl itself uses internally. } 2011/11/29 Chris Stinemetz > How can I check that t