http://qs321.pair.com?node_id=486239


in reply to returns not working

I generally don't enclose the return code in parentheses: return 0;

If you aren't, you should use warnings; it may give you a clue to what's going on. You say that return (1) doesn't seem to work. What does it do?