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