Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: runtime problem

by toolic (Bishop)
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 exploiting the Monastery: (16)
As of 2015-07-28 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls