I'm having trouble calling a subroutine in one code file from another file.  I'm new to perl but making my way through it!
 
In one code file I have code which fires when a garage door is opened:
  print_log "Weeder: Garage open detected.";
  &garage_lights_onopen();
 
In a seperate code file I have my subroutine:
sub garage_lights_onopen {
  print("Garage Lights: Garage open triggering lights on");
  set $Garage_Lights_Timer 600;
  $Garage_Inside_Light->set('on');
}
 
Can someone explain why this isn't working?  I see the first print_log message when my garage door is opened, but never the second print_log, and no errors in the logs/screen.  Is this a Perl/MH thing that I don't understand?
 
Thanks!