in reply to how to method Inheritance

my @ISA = qw(Exporter Filedetails Mailsort_scj); my @EXPORT = qw(update_database update_options update_tntoptions update_inputformat create_scj update_Foreign_Addresses Redirect_Rejects);

These variables can't be lexical; they must be package global variables. Declare them with our or the vars pragma. Alternately, use the base or parent module to inherit from a superclass.

Replies are listed 'Best First'.
Re^2: how to method Inheritance
by skywalker (Beadle) on May 06, 2009 at 18:38 UTC
    Fantastic, thanks for the help

    using the base pragma, and removing the require statement worked a treat

    package Mailsort; use lib ('G:\Perl Live\OO Packages'); require Exporter; use strict; use Carp; use base qw(Mailsort_scj Filedetails);
    however why does base work here where require did not?

    thanks

      RTFM: base (and parent) modify @ISA.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)