in reply to Re: Variable Declaration
in thread Variable Declaration
The following would also work:
my $var2 = <cond1> ? a : y;
But be careful. Even slight complexity in its arguments can make it hard to read.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Variable Declaration
by nobull (Friar) on Aug 31, 2007 at 16:11 UTC |