Tom Christiansen wrote:
> 
> >Is some technical reason that this can't be done in perl 5?  I hate
> >having to add another pair of braces just to reassure perl that I didn't
> >forget a comma:
> 
> >    print {$fh{$name}} "data\n";
> 
> Indirect objects are very limited in what they can be.

Currently, but my impression based on discussions was this was going to
be "fixed" in Perl 6. I'd love this:

   dostuff @stuff;

To be able to automatically figure out I meant:

   $stuff[0]->dostuff(@stuff[1..$#stuff]);

Hence RFC 174.

Before anyone brings up problems, there are precendence rules, etc,
covered in the RFC. Please read it and check out the thread starting
here:

http://www.mail-archive.com/perl6-language-subs%40perl.org/msg00188.html

Before rehashing everything.

-Nate

Reply via email to