> > tie %thehashinquestion, 'Sorted', flubber(^a,^b);
> >
> > ???
> >
> > Damian
>
>
> Compiler will know to pass flubber as ref-to-code instead of
> intant eval because (^a,^b) instead of ($a,$b), or is more,
> like \&flubber needed here?
I was using the HOF notation, just to mirror your use of an anonymous sub.
In fact:
flubber(^a,^b)
means:
sub { flubber($_[0], $_[1]) }
Of course, you could also say:
\&flubber
in this context and save a subroutine call.
Damian
- Self-Sorting Containers David L. Nicol
- Re: Self-Sorting Containers Dan Sugalski
- Re: Self-Sorting Containers Dave Storrs
- Re: Self-Sorting Containers David L. Nicol
- Re: Self-Sorting Containers Damian Conway
- Re: Self-Sorting Containers David L. Nicol
- Damian Conway
