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

Re: How do I bury some code ?

by hossman (Prior)
on Sep 01, 2007 at 05:29 UTC ( [id://636475]=note: print w/replies, xml ) Need Help??


in reply to How do I bury some code ?

you seem to have a fundamental problem in that you want to do object oriented kinds of things, but you wnat to use a "struct" based approach.

once you resolve this discrepancy, you should look into using Module::Pluggable instead of needing a giant "if" switch to pick which module to use.

(for that matter, if the only reason you created WordExposed::Languages was to have a _translate method with that giant if statement you can eliminate the whole thing and use Module::Pluggable directly from your Word class.

Log In?
Username:
Password:

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

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

    No recent polls found