Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Detecting if a scalar has a number or string

by v_o_i_d (Novice)
on Nov 18, 2004 at 07:16 UTC ( #408704=note: print w/replies, xml ) Need Help??


in reply to Detecting if a scalar has a number or string

I run this and get the following error: "Operation `+': no method found, left argument has no overloaded magic, right argument in overloaded package Foo at bug.pl line 22."

From memory, if that is a warning you can solve it by putting in the pragma no warnings 'void'; (or somethin like that). That will get rid of those pesky warnings. These pragmas should help you diagnose the problem:

use strict; use warnings;

Replies are listed 'Best First'.
Re^2: Detecting if a scalar has a number or string
by rrwo (Friar) on Nov 18, 2004 at 18:38 UTC

    It's an error, not a warning.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2021-09-20 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?