Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Declaring and checking content of variables with consecutive names

by Corion (Pope)
on Sep 23, 2016 at 11:36 UTC ( #1172454=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @str;
    
    ...
    $str[99] = '';
    
    print join ",", @str;
    
  2. or download this
    my %str;
    
    ...
    $str{99} = '';
    
    print join ",", map {$str{$_}} 0..99;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2019-09-19 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (249 votes). Check out past polls.

    Notices?