in reply to conditions not working

I assume you are trying to assign???

$mac = $old = 1; #$mac--; $mac = $mac eq $old ? "SAME" : "DIFF" , "\n"; print "$mac\n";

Otherwise, you have not provided enough context.

,welchavw

Replies are listed 'Best First'.
Re: Re: conditions not working
by davido (Cardinal) on Sep 29, 2003 at 19:49 UTC
    Did you test your solution with "use warnings;"?

    You still have a useless use of a constant in void context. (Hint: comma operator)

    Dave

    "If I had my life to do over again, I'd be a plumber." -- Albert Einstein