Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Initialize multiple variables in one statement

by shadowsong (Monk)
on Nov 23, 2015 at 20:08 UTC ( #1148426=note: print w/replies, xml ) Need Help??


in reply to Initialize multiple variables in one statement

Hello Anony-monk,

Any reason you couldn't just do this:

my ($name1,$name2,$name3,$name4,$name5,$name6) = ('','','','','','');

Cheers,
Shadowsong

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2019-05-20 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (123 votes). Check out past polls.

    Notices?