Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by thezip (Vicar)
on Nov 27, 2013 at 00:31 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1064504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found