Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Parameter testing

by jsprat (Curate)
on Jul 21, 2003 at 21:24 UTC ( [id://276476]=note: print w/replies, xml ) Need Help??


in reply to Parameter testing

if ( $unv{$accountID} = $accountAD ) { ======================^^

Changing the '=' to 'eq' should correct it. Do you use warnings;? There is a warning (Found = in conditional, should be ==) you will see if you enable warnings.

HTH

Update: It should be eq, not == Thanks for the heads up Enlil

Replies are listed 'Best First'.
Re: Re: Parameter testing
by sulfericacid (Deacon) on Jul 21, 2003 at 21:31 UTC
    I wasn't using use warnings; but I added that and tested the script before changing your suggestion. It didn't give off any error in my program or on the web. I changed the = to == but the same problems are present. As long as the ID exists, the AD doesn't matter.

    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid
      It looks to me like you should be using 'eq' not '==' because both ID and AD are not numeric.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-16 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found