in reply to (jeffa) Re: package/scope question
in thread package/scope question

when I try the our approach I get warnings and errors: use of reserved word our depricated at line.... Variable $date is not imported at framework line.. Global symbol $date requires explicit package name at ... when I try the OO approach, I get the following error: framework.pl did not return a true value at test.pl line 2. one thing I should mention that may make a difference is that I am not putting any of my files in the perl lib path. (and I hope very much to avoid doing this as the setup for the test is already complex enough without having to do this)

Replies are listed 'Best First'.
(jeffa) 3Re: package/scope question
by jeffa (Bishop) on Nov 16, 2001 at 21:52 UTC
    Sounds like you are using an older version of Perl - try perl -v to see which version you are using.

    Like i said, i personally stick with the OO style - you need to simply stick 1; as the last line in framework.pl

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    F--F--F--F--F--F--F--F--
    (the triplet paradiddle)
    
Re: Re: (jeffa) Re: package/scope question
by pbradley (Initiate) on Nov 16, 2001 at 21:49 UTC
    my bad I forgot to put the return value in.. thanks.