On Wed, Dec 01, 2004 at 06:16:03AM +1100, Damian Conway wrote: : >If you wanted to get a function for each element in an array @a, I : >suppose you can say: : > : >sub makefunc($x){{$x}} : >@funcarray = @a>>.makefunc; : : You're attempting to call a sub as a method. You want: : : @funcarray = »makefunc« @a;
Unaries only take "hyper" on one side, so that would just be: @funcarray = makefunc« @a; And if makefunc is declared with a single argument, it can probably be called as a method anyway, since we try to keep those indistinguishable. Possibly it would need to be declared multi. Larry