Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-07-02 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (19 votes). Check out past polls.