in reply to Re: Trying to slice off all array elements but the last onein thread Trying to slice off all array elements but the last one
I found $#foo-- to be both clever and scary at the same time. :)