in reply to Oddness with lvalue and if/else blocks
Not what you asked, but the trinary op is an lvalue, making this construction easy and correct:
I think the problem with yours is that the last evaluated statement in the sub is the whole if..else block.sub foo :lvalue { $_[0] ? $bar : $baz }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Oddness with lvalue and if/else blocks
by Aristotle (Chancellor) on Sep 09, 2004 at 07:47 UTC |