Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by johngg (Canon)
on Nov 27, 2013 at 11:26 UTC ( [id://1064597]=note: print w/replies, xml ) Need Help??


in reply to Adding an new element after every 5th element in array

Just an observation that there is a lot of wasted typing going on creating the array in the suggested answers. Doing

... my @array = qw{ create mount remove } x 20; ...

would suffice.

Cheers,

JohnGG

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-20 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found