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

Re: Parameter testing

by jsprat (Curate)
on Jul 21, 2003 at 21:24 UTC ( #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.


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"

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2021-01-25 08:43 GMT
Find Nodes?
    Voting Booth?