Rob Dixon wrote: > > When I run perl -c on this, I get the following messages: > > Subroutine new redefined at Train.pm line 106. > > It's telling you that you have two definitions of ScheduleDay::new. > Presumably Train.pm has no 'package Train;' statement?
Wiggins' post got me to think a little more carefully, and it is clear that Train.pm is doing the redefining at its line 106, not ScheduleDay. That means that the definition must already exist when the 'use Train' statement in ScheduleDay is executed, as none of the Train code is executed anywhere else. Since 'use' is an implied BEGIN block I can't see any way this is possible. Can you put me out of my misery Rob, and tell us what's on Train.pm line 106? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]