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


in reply to How do I print a partial array?

If you already know what elements you want to print, then doing something like print @b[0,4,6..8], "\n"; will print just those elements. This is called an array slice.