require isn't executed at compile time and if it was your problem goes away.
Either wrap your require in a BEGIN block, or use some_file_with_my_functions instead.
BEGIN {require 'some_file_with_my_functions.pm' } #or use some_file_with_my_functions; # you may need to "use lib '.'"
In reply to Re: Sub calling sadness
by FunkyMonk
in thread Sub calling sadness
by nefigah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |