in reply to Re: Error with creating new objects
in thread Error with creating new objects

or add  use Data::Dump; dd \%INC, \@INC; to see which file is being loaded (Switch.pm)