in reply to Re: Strange Behavior
in thread Strange Behavior

While I haven't read your code, two very important things seem to be missing from it:

use strict; use warnings;

These two will catch most of the errors you were likely to have. Not only in this program, in everything!

(It is said that the universe itself uses strict...)