in reply to Unexpected variable assignment
The best way I've found to distinguish between the two is that if you're manipulating the named thing, you're working with an array. Otherwise, chances are you're working with a list.
my @x = (6 .. 10); my $a = (6 .. 10); my $b = @x; print "$a $b\n";
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Unexpected variable assignment
by jonnyfolk (Vicar) on Apr 09, 2003 at 22:31 UTC | |
by chromatic (Archbishop) on Apr 09, 2003 at 22:42 UTC | |
by jonnyfolk (Vicar) on Apr 10, 2003 at 10:48 UTC | |
by dragonchild (Archbishop) on Apr 09, 2003 at 22:41 UTC |