in reply to Re: variable definitions
in thread variable definitions

You should probably use strict first off - would catch one of the errors in your code.

First - you're using the wrong equality tester - if you want to test if a variable is equal to the string "true" use the eq operator.

This follow line has to be changed for 2 reasons - you are actually doing an assignment - the single equals = means $WeWantToMakeAChange gets the value of 'true'. Second you should use eq to evalue if a string is equal.

if( $WeWantToMakeAChange eq "true" ) { }
But why not use 1 for true and 0 for false instead of these strings?

Replies are listed 'Best First'.
Re: Re: Re: variable definitions
by fourmi (Scribe) on Aug 15, 2003 at 13:49 UTC
    Damn, fatigue takes its toll again. Thanks folks up and running again 9when im supposed to..) cheers ant