| Next |  Program
    Repair Shop  | 191 | 
Indexing from the end of an array:
        $last_element = $array[$#array];
Usually it's simpler and clearer to use negative subscripts:
        $last_element = $array[-1];
| Next |  | Copyright © 2002 M. J. Dominus |