in reply to Re^4: Maintaining context of the caller
in thread Maintaining context of the caller
It does if you realise that that is what is happening in the context of a conditional. From OP's parenthetical comment it is fairly clear that this particular subtlety of Perl (and Perl has a lot of them) had escaped OP.
I thought it worth making clear that there is no syntactic sugar that will allow OP to select a list or scalar context at run time for the call by using the conditional operator in that particular fashion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Maintaining context of the caller
by revdiablo (Prior) on Jul 04, 2005 at 23:18 UTC |