Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Why parens?

by tobyink (Abbot)
on Feb 07, 2013 at 17:22 UTC ( #1017704=note: print w/ replies, xml ) Need Help??

in reply to Why parens?

When declaring only one variable, it's mostly an aesthetic choice; but consider declaring multiple variables simultaneously...

my ($a, $b, $c); # the good my $a, $b, $c; # the bad (i.e. broken) my $a, my $b, my $c; # and the ugly
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Comment on Re: Why parens?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2015-11-29 01:08 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls