in reply to different return type for split

if you don't call split in list context, it returns the number of fields found. try print scalar split(/\s/,$str); to print the number of elements it returns.

cheers
snowcrash //////