http://www.perlmonks.org?node_id=1037667


in reply to Re: Separating array contents
in thread Separating array contents

If you don't like empty entries you can simply push the result array through a map or grep filter.

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)