On Wed, Mar 09, 2005 at 12:22:37PM +0100, Juerd wrote:
: > my $a = [EMAIL PROTECTED];
: > my $a = *(1,2,3); # or is this a syntax error?
: > my $a = *(list 1,2,3);
: > my $a = *[1,2,3];
:
: I hope this will emit some kind of too-many-arguments warning in
: addition to assigning 1 to $a.
N
Aldo Calpini writes:
> my @a = [1,2,3]; # or does it make @a[0] = (1,2,3)?
Yes, @a[0] = [1,2,3];
> and I have absolutely no clue about the following:
>
> my *$a = @a;
> my *$a = [EMAIL PROTECTED];
> my *$a = (1,2,3);
> my *$a = [1,2,3];
Those are all illegal. You need to use binding
Juerd wrote:
my @a = 1,2,3;
my $a = 1,2,3;
These are
(my @a = 1), 2, 3;
(my $a = 1), 2, 3;
if I understand precedence correctly. (S03)
right, sure. I vaguely remember something about comma instead of parens
being the list constructor, but maybe it was just in my fantasy.
and thanks for
Aldo Calpini skribis 2005-03-09 12:12 (+0100):
> my @a = 1,2,3;
> my $a = 1,2,3;
These are
(my @a = 1), 2, 3;
(my $a = 1), 2, 3;
if I understand precedence correctly. (S03)
> my $a = [EMAIL PROTECTED];
> my $a = *(1,2,3); # or is this a syntax error?
> my $a = *(list 1,2,3);
>