Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: runtime problem

by toolic (Chancellor)
on Nov 14, 2012 at 17:27 UTC ( #1003866=note: print w/ replies, xml ) Need Help??


in reply to runtime problem

Use :: instead of ->

if (my $numeral = Scalar::Util::looks_like_number($user_radius)) {

Scalar::Util does not have an object-oriented interface.

Similarly, you can also import the sub:

use Scalar::Util qw(looks_like_number); ... if (my $numeral = looks_like_number($user_radius)) {


Comment on Re: runtime problem
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003866]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-07-11 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls