in reply to Re: Can't locate object method "new" via package ... perhaps you forgot to load...Oh yes I did!
in thread Can't locate object method "new" via package ... perhaps you forgot to load...Oh yes I did!
Your description is not consistent with the code you provide! Syringe.pm does not compile due to the exporter related lines and due to the $self->{picture_width} = $args{picture_width}; line.
The output from the print $INC{"Syringe.pm"}; line is consistent with a file called Syringe.pm being found in the same directory as the .pl file so the implication is that the file being loaded is not the one you think it is. Have you two files with different case perhaps, or maybe the file you are editing is in a different directory than the .pl file, but there is an old version of the .pm that is being found?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can't locate object method "new" via package ... perhaps you forgot to load...Oh yes I did!
by Phemto (Acolyte) on Jan 29, 2011 at 10:39 UTC | |
by GrandFather (Saint) on Jan 29, 2011 at 10:50 UTC |