At 10:15 PM 2/13/2001 -0500, you wrote: >@foo in a scalar context will return the number of items in an array. With perl there are a zillion ways to do things: I use $#foo+1 as the great Larry Wall wrote.... scalar(@foo) == $#foo+1; "is always true." --- Anthony Baratta President Keyboard Jockeys