Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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...

Replies are listed 'Best First'.
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?
[Corion]: A good morning to everybody ;)
[choroba]: Hi Corion!
[Discipulus]: hello folks!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-02-23 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (342 votes). Check out past polls.