On Sat, Feb 12, 2005 at 03:49:02AM -0600, Jonathan Scott Duff wrote:
> On Sat, Feb 12, 2005 at 01:03:26AM -0600, Rod Adams wrote:
> > I also find the following incredibly disturbing:
> >
> > >perl6 -e "$x = 'cat'|'dog'; say $x;"
> > dog
> > cat
>
> Would that happen though? What's the signature of C<say>? I think
> it's something like
> multi sub *say ($stream = $*OUT: *$data) { ... }
> so autothreading wouldn't happen anyway as S9 says the slurpy array/hash
> aren't autothreaded.
True, but it's always possible to find or create functions that would
have the "disturbing" effect that Rod was pointing out.
sub mysay { say $^x; }
$x = 'cat' | 'dog';
mysay $x;
Pm