Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: (jeffa) Re: package/scope question

by pbradley (Initiate)
on Nov 16, 2001 at 21:44 UTC ( [id://125864]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://125864]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found