Paul Hodges writes:
> Maybe, but I don't like returning junctures in those cases unless you
> *explicitly* ask for it. I'd rather the default be the arbitrary lists
> returned, or whatever fits the context. How about
> 
>  @ar=[a..z];
>  %hash=(a=>1,b=>4,c=>7);
> 
>  $j=1|2|3;

   @j = (1,2,3);

>  $k="a"|"c";

   @k = <a c>;

>  @u  = @ar[$j];            # (b..d)

   @u  = @[EMAIL PROTECTED];

etc.

Perl can indeed slice using ordinary lists.  Another problem with using
junctions for this is that they're unordered, and you're expecting
ordered results back.

Luke

Reply via email to