On Tue, Mar 29, 2005 at 06:42:41PM +0200, Alexandre Jousset wrote:
> Alexandre Jousset wrote:
> >Andrew Pimlott wrote:
> >
> >>>>(You should be able to write the first one as
> >>>>
> >>>> ${fold_left { \${$_[0]}->{$_[1]} } \$hash, @a} = 1;
>
> Is it a copy/paste or a retype ? Because there's a comma missing
> after the first closing brace...
Another nifty feature of prototypes. :-)
An "&" requires an anonymous subroutine, which, if passed as the
first argument, does not require the "sub" keyword or a subsequent
comma.
(from perlsub)
Andrew