Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Possibly Stupid OOP question

by runrig (Abbot)
on Feb 27, 2008 at 00:52 UTC ( [id://670452]=note: print w/replies, xml ) Need Help??


in reply to Possibly Stupid OOP question

BTW, your code could use some Use strict and warnings. And why the useless use of import()?

Replies are listed 'Best First'.
Re^2: Possibly Stupid OOP question
by talwyn (Monk) on Feb 27, 2008 at 01:06 UTC
    The compiler complained unless import was used. I assumed it wasn't aware of the other package.

    Thanks for the BEGIN{} hint, that seemed to do the trick.

    As far as strict and warnings, this is a code snippet, the larger app does indeed use strict

    Again Thanks !

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-19 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found