Comment on Another Programming Idiom You've Never Heard OfComments−bingbing14yThat idiom is called an array slice in perl. # perl -e "print join ' ', (10,5,9,6,20,17,1)[0,1,3,6]" 10 5 6 1 http://perldoc.perl.org/perldata.html#Slices
Comments
That idiom is called an array slice in perl.
http://perldoc.perl.org/perldata.html#Slices