in reply to Re: my first module
in thread my first module

You can't change our to my for things like @ISA or @EXPORT. They have to be package variables. The closest older thing for our is use vars, as others have pointed out.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: RE: Re: my first module
by KM (Priest) on Oct 07, 2000 at 00:31 UTC
    I did point that out. I had meant 'in general' to change 'our' to 'my' if he isn't in 5.6.. bad wording left room for interpretation. But, I am wrong (this Florida sun is scrambling my brain), you would want use vars.

    Cheers,
    KM

      No, in general, you cannot change our to my, because that changes a package variable into a lexical variable, really hosing things up.

      "In General", you'll be wanting to change our to use vars, the closest analog between 5.1 and 5.5.3 for the new-in-5.6 our construct.

      -- Randal L. Schwartz, Perl hacker

        I think the Florida sun is quickly turning my brain into some sort of cerebral soup... I stand corrected :)

        Cheers,
        KM