18 ms·
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
by bingbing 14y 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 http://perldoc.perl.org/perldata.html#Slices