Jonathan Scott Duff wrote:
> (*%a, %b) = (%c,%d); # %a slurps, %b gets nothing
> (%a, *%b) = (%c,%d); # %a = %c, %b gets the rest
>
> I'm sure your imaginations can twiddle the cardinality knob
> appropriate for generalization :-)
>
> -Scott
so if you don't know exactly what the conext is going to be
can you defer it with a continuation operator?
@split_me_later = ?(%f,%g,%h);
...
(%a,*%b) = @split_me_later
- Re: Apoc2 - Context and variables Damian Conway
- Re: Apoc2 - Context and variables Nathan Wiger
- Re: Apoc2 - Context and variables John Siracusa
- Re: Apoc2 - Context and variables David L. Nicol
- Re: Apoc2 - Context and variables Edward Peschko
- Re: Apoc2 - Context and variables John Siracusa
- Re: Apoc2 - Context and variables Nathan Wiger
- Re: Apoc2 - Context and variables John Siracusa
- Re: Apoc2 - Context and variables Edward Peschko
- Re: Apoc2 - Context and variables Jonathan Scott Duff
- Re: Apoc2 - Context and variables David L. Nicol
- Re: Apoc2 - Context and variables John Porter
- Re: Apoc2 - Context and variables Simon Cozens
- Re: Apoc2 - Context and variables Graham Barr
- Re: Apoc2 - Context and variables John Porter
- Re: Apoc2 - Context and variables Larry Wall
- Re: Apoc2 - Context and variables Nathan Wiger
