in reply to sub returns array or empty array

You should simply test for
if ( @a )
That will catch all cases: The problem with your code is, that even an empty array is defined, so your comparison always returns true.


holli, /regexed monk/