Re: RFC 57 (v1) Subroutine prototypes and parameters

[email protected] (Bart Lateur) Tue, 08 Aug 2000 13:35:25 +0200
Newsgroups perl.perl6.language.subs
Organization MediaMind
Message-ID <[email protected]>
On Tue, 8 Aug 2000 10:02:45 +0100, Andy Wardley wrote:

>I was trying to strike a similarity
>with the current style of passing named parameters as a hash ref or
>naked list.  e.g.
>
>    mysub({ first => 1, second => 2 });
>or
>    mysub( first => 1, second => 2 );
>
>See, no prefixes!

The difference is that inside the sub, you don't access the hash values
using prefixes for the keys, either. With (automatically created)
lexical variables, you do.

-- 
	Bart.