in reply to Re^2: Maintaining context of the caller
in thread Maintaining context of the caller
From OP:
I thought I could solve problem (2) with the following:
wantarray ? @r : $r = &$code;
But that gives me an error, Assignment to both a list and a scalar. (Again, before anyone asks: no, it's not a precedence problem. I even tried adding appropriate parentheses just to be sure.)
The line of code is assignment to a conditional, but the values are not either both scalar or both list values. The Camel quote explaines that that is not an acceptable thing to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Maintaining context of the caller
by BUU (Prior) on Jul 04, 2005 at 21:54 UTC | |
by GrandFather (Saint) on Jul 04, 2005 at 22:03 UTC | |
by revdiablo (Prior) on Jul 04, 2005 at 23:18 UTC | |
by ysth (Canon) on Jul 04, 2005 at 22:13 UTC | |
by BUU (Prior) on Jul 05, 2005 at 21:15 UTC |