Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: 'base' versus @ISA, why? (too much)

by tye (Sage)
on Jul 21, 2007 at 21:31 UTC ( [id://628031]=note: print w/replies, xml ) Need Help??


in reply to 'base' versus @ISA, why?

I stopped using base.pm when it got too much featuritis and started trying to guess whether require was needed or not and started guessing wrong (thus silently deciding to not require the parent class so that your code breaks in a rather mysterious way).

- tye        

Replies are listed 'Best First'.
Re^2: 'base' versus @ISA, why? (too much)
by Joost (Canon) on Jul 21, 2007 at 21:36 UTC
    My thoughts exactly. I don't know and I don't WANT to know when base.pm thinks it should load a module, and when it thinks it should ignore a require error. On significantly complex systems, setting @ISA and use()ing module "by hand" makes things clearer. Maybe not easier, but clearer none the less.

    Update: I still do use base for simple modules. But I do regularly run into situations where it just doesn't work right.

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found