Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Shorten initializers

by thelenm (Vicar)
on Jun 26, 2003 at 18:38 UTC ( [id://269361]=note: print w/replies, xml ) Need Help??


in reply to Shorten initializers

You can't do it quite like that, but you could do either of these:

my ($foo, $bar, $baz) = (0, 0, 0); my ($foo, $bar, $baz) = (0)x3;

-- Mike

--
just,my${.02}

Replies are listed 'Best First'.
Re: Re: Shorten initializers
by Anonymous Monk on Jun 26, 2003 at 22:55 UTC
    Thanks to everyone!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-16 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found