in reply to Sub calling sadness
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 '.'"
|
|---|