>>>>>> "TC" == Tom Christiansen <[EMAIL PROTECTED]> writes: >TC> Well, that depends. Often you must delay till run-time. When Perl >TC> simply sees something like: >TC> sub fn { return @blah } >TC> it can't know whether you'll use that as: >TC> $x = fn(); >TC> or >TC> @x = fn(); >TC> or >TC> fn(); >I think with the -internals idea of pushing a thingee on the stack >rather than flattening the list, the actual effect of the assingment >can easily be delayed with little cost to runtime. >It might be worthwhile enough to kill > sub fn { return (7,8,9,10) } > $x = fn(); # $x == 10 But this happens many places. What about @foo[4,1,9,-2]? It's just a listish thing. One should learn. --tom
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Christopher J. Madsen
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Christopher J. Madsen
- do BLOCK as inline sub? (was Re: "... Uri Guttman
- Re: The distinction between "do BLOCK while CON... Peter Scott
- Re: The distinction between "do BLOCK whil... Christopher J. Madsen
- Re: The distinction between "do BLOCK ... Peter Scott
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Chaim Frenkel
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Chaim Frenkel
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Chaim Frenkel
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Chaim Frenkel
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Chaim Frenkel
- Re: The distinction between "do BL... Tom Christiansen
- Re: The distinction between "do BL... Chaim Frenkel
- Re: The distinction between "do BL... Tom Christiansen