in reply to Mystery of missing functions

You need to use List::Util it does most of those things.

Phil

Update: read docs more closely.