Help for this page

Select Code to Download


  1. or download this
    # get_last returns an array reference for efficiency,
    # so we need to de-reference; hence the @{} around
    ...
     # last 20 elements of @lines
     [ @lines[$#lines-$from_last, $#lines] ];
    }