in reply to Re: 'my' problems
in thread 'my' problems

Is this also true for ternary conditionals? I use stuff like
my $var = $condition ? "a" : "b";
all the time and never had any problems.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^3: 'my' problems
by chb (Deacon) on May 23, 2005 at 10:39 UTC
    I should be more specific, as dave_the_m below: you get problems if you use statement modifiers on a my. AFAIK the ternary conditional is an expression.