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

Re^3: Defining classes and inheritance using packages within a single .pl file, without creating modules

by adrianh (Chancellor)
on Nov 30, 2006 at 01:15 UTC ( [id://586848]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Defining classes and inheritance using packages within a single .pl file, without creating modules
in thread Defining classes and inheritance using packages within a single .pl file, without creating modules

IMO base is a crap module, it tries to handle both loading external files and inline packages, but it tries Too Much Magic™ and in some cases it may fail. It's failed many times for me in the past. I don't trust it any more.

Use it all the time. Never had a problem with it :-)

I don't really think it's that magical. Two rules:

  • If the package is already loaded - use it
  • Otherwise, try and use it.
  • Comment on Re^3: Defining classes and inheritance using packages within a single .pl file, without creating modules

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-25 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found