Hacker News new | ask | show | jobs
by bingbing 5121 days ago
That 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