Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Adding an new element after every 5th element in array

by thezip (Vicar)
on Nov 27, 2013 at 00:31 UTC ( #1064504=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my @array = qw/ create  mount  remove /;
    ...
      \@array,
      ...
    ];
    
  2. or download this
    #!/perl/bin/perl
    use strict;
    ...
    }
    
    print Dumper($array);
    
  3. or download this
    __OUTPUT__
    $VAR1 = [
    ...
                'foo'
              ],
            ];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1064504]
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-11-18 02:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (87 votes). Check out past polls.

    Notices?