in reply to variable declaration question
To add to what tobyink said, "none" - in context.
my $foo = @some_array_value and my ($foo) = @some_array_value will give two very different results.
print(my $foo = (1, 2, 3), "\n"); print(my ($foo) = (1, 2, 3), "\n"); __END__ 3 1
Update: Alright, either QuickDraw McGraw updated his node, or I skipped over the second and following line when I read it. :-) We stated basically the same thing.
--MidLifeXis
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: variable declaration question
by tobyink (Canon) on Jan 18, 2013 at 21:19 UTC | |
Re^2: variable declaration question
by 7stud (Deacon) on Jan 18, 2013 at 22:08 UTC | |
by keszler (Priest) on Jan 18, 2013 at 22:14 UTC | |
by MidLifeXis (Monsignor) on Jan 21, 2013 at 12:31 UTC |
In Section
Seekers of Perl Wisdom