Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 (Prior) 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 musing on the Monastery: (16)
As of 2014-10-21 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (105 votes), past polls