Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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.

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
Node Status?
node history
Node Type: note [id://276476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2020-09-21 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (126 votes). Check out past polls.

    Notices?