------------------------------------------------ On Wed, 19 Mar 2003 20:02:20 -0800 (PST), Rob Richardson <[EMAIL PROTECTED]> wrote:
> Greetings! > > I have the following class in a .pm file: > > use warnings; > use strict; > package ScheduleDay; > > use Train; > > sub new > { > my $self = {}; # $self is a reference to an anonymous, empty (for > now) hash > bless $self; > return $self; > } > Rob's suggestion that you lack a package statement for Train could be it, it could also be that Train exports 'new', which is placing it in the current namespace, then you are redefining it. Probably you shouldn't export 'new' if it is. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]