in reply to Display array as ranges?
You should get rid of the empty prototype, the "()" after the sub's name. It will prevent foo from being called with arguments.
After Compline,Zaxo