Re: Unknown level of hash

Andrew Pimlott <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.