Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: runtime problem

by toolic (Bishop)
on Nov 14, 2012 at 17:27 UTC ( [id://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)) {

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found