Help for this page

Select Code to Download


  1. or download this
    for (-$#array .. 0) {
    ...
    
  2. or download this
    J:\>perl -le "@arr = ( 1 .. 10 ); print $arr[ $_ ] for - $#arr .. 0;"
    2
    ...
    1
    
    J:\>
    
  3. or download this
    J:\>perl -le "@arr = ( 1 .. 10 ); print $arr[ $_ ] for reverse 0 .. $#
    +arr;"
    10
    ...
    1
    
    J:\>