Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: variable declaration question

by keszler (Priest)
on Jan 18, 2013 at 22:14 UTC ( #1014143=note: print w/ replies, xml ) Need Help??


in reply to Re^2: variable declaration question
in thread variable declaration question

Try:
print(my $foo = ('a', 'b', 'c'), "\n");
vs:
my @foo = ('a', 'b', 'c'); my $bar = @foo; print $bar, "\n";
I like using letters vs numbers to avoid confusion...


Comment on Re^3: variable declaration question
Select or Download Code
Re^4: variable declaration question
by MidLifeXis (Monsignor) on Jan 21, 2013 at 12:31 UTC

    Quite right. ++

    --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-07-05 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls