Think about Loose Coupling | |
PerlMonks |
Re: ternary operator as lvalue failing to induce evaluation of right-hand expression in list contextby Loops (Curate) |
on Aug 03, 2013 at 16:21 UTC ( [id://1047722]=note: print w/replies, xml ) | Need Help?? |
Deparse tells the tale...
and if you try the more natural:
Perl needs to examine the left-hand side in order to know the context in which to run Foo(), but it delays execution until Foo() has been run. Therefore it can't decide on the context and fails.
In Section
Seekers of Perl Wisdom
|
|