Help for this page

Select Code to Download


  1. or download this
    splice @array,-5,5,();
    
  2. or download this
    $ perl -e '@a=(1,2,3,4,5);splice @a,-2,2,();print "@a\n"'
    1 2 3