Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Initialize multiple variables in one statement

by mr_ron (Chaplain)
on Nov 23, 2015 at 20:13 UTC ( [id://1148427]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my ($name1, $name2, $name3, $name4, $name5, $name6) = ('') x 6;
    
    print "\n $name1, $name2, $name3, $name4, $name5, $name6\n\n";
    
  2. or download this
    use strict;
    use warnings;
    ...
    __END__
    Use of uninitialized value $names[2] in concatenation (.) or string at
    + ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-19 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found