Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: global symbol...explict package name

by almut (Canon)
on Mar 13, 2008 at 03:59 UTC ( [id://673898]=note: print w/replies, xml ) Need Help??


in reply to Re^4: global symbol...explict package name
in thread global symbol...explict package name

I have also review all code blocks to make sure everything grouped properly and all was fine.

Are you sure your code now looks something like this?

if ($ODP1Dir eq "OUT" || $ODP1Dir eq "DOWN") { if (length($ODP1Val) != 0) {$ODP1Val = '-' . $ODP1Val;} if ($ODP1Dir eq "OUT") { $ODP1Dir = "IN"; } else { $ODP1Dir = "UP"; } }

Note also that you need eq instead of == to do a string comparison...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2025-07-16 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.