James Mastros writes:
> Juerd wrote:
> >Just typing "my " before the first use of a variable isn't hard, and it
> >makes things much clearer for both the programmer and the machine. 
> Does this imply that it's now possible to type C<my @foo[23] = 42;>, and 
> declare @foo?  In the current perl, this doesn't work -- it's a syntax 
> error.  It'd certainly make many constructs easier.

That looks weird to me.  But as Rod points out, it can be useful with
hashes. 

In Perl 5 you can do the hackish:

    (\my @foo)->[23] = 42;

Luke

Reply via email to