in reply to Re: Poor Man's Perl6 Exegesis (you get what you pay for)
in thread Poor Man's Perl6 Exegesis (you get what you pay for)

sub foo( @bar ){...} &foo( "a", "b" );

As I read things, yes, this is an error. The flattening star will be necessary to slurp up the rest of the goodies. I suspect that this is going to be a source of bugs for many people switching to Perl6. Also, I suspect the following will trip people up:

@*ARGS; # was @ARGV

The star between the sigil and the variable name, I believe, is how we will now be referring to special globals. Thus, @*ARGS != @ARGS.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: (Ovid) Re(2): Poor Man's Perl6 Exegesis (you get what you pay for)
by BrentDax (Hermit) on Jan 27, 2002 at 11:06 UTC
    Not true. @*ARGS and @ARGS are the same thing, unless you define a new @ARGS in your scope. If that happens, you can still access the global @ARGS as @*ARGS.

    =cut
    --Brent Dax
    There is no sig.