in reply to odd things with my and our

The complaint about our leads me to believe you have a perl that is quite old, so old that it doesn't support our, but not too old so it doesn't know about it. What is it, 5.005_x?

A quick fix, even for older perls, is to replace our $var; with use vars qw($var);. You must take care that the variables in both files are in the same package, or else, simply use fully qualified variables (= including the package name, like $Foo::var) — that way, you don't have to declare them.

Or you could import/export them.