in reply to Re^5: Importing constants into another module
in thread Importing constants into another module

Sorry that should have read:

package Check::DNSCheck;

Serves me right for not copying and pasting. :-\

Replies are listed 'Best First'.
Re^7: Importing constants into another module
by bmann (Priest) on Feb 03, 2005 at 04:33 UTC
    Then you probably meant Check::DNSCheck->new

    This assumes there is a file Check/DNSCheck.pm containing package Check::DNSCheck;, and the script includes use Check::DNSCheck;

      Thanks, that got it working...been staring at this so long I didn't even realise that simple mistake.