in reply to Re: Package mismatch
in thread Package mismatch

Thanks! If my perl file contains only:
use Geography::NationalGrid::IE;
I still get the error. Any ideas.

Replies are listed 'Best First'.
Re^3: Package mismatch
by JavaFan (Canon) on Dec 29, 2010 at 18:39 UTC
    I downloaded the package, read the manual page, and saw the manual page uses:
    use Geography::NationalGrid;
    So, I tried:
    $ perl -MGeography::NationalGrid::IE -we1 Can't locate object method "deg2rad" via package "Geography::NationalG +rid" at /opt/perl/lib/site_perl/5.12.2/Geography/NationalGrid/IE.pm l +ine 7. BEGIN failed--compilation aborted at /opt/perl/lib/site_perl/5.12.2/Ge +ography/NationalGrid/IE.pm line 7. Compilation failed in require. BEGIN failed--compilation aborted. $ $ perl -MGeography::NationalGrid -we1 $