Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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)) {

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003866]
help
Chatterbox?
shmem sprinkles naga bih jolokia powder over the cookies on the platter on the sideboard
mr_mischief grabs a spicy cookie.
[mr_mischief]: mmm.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-04-27 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (508 votes). Check out past polls.