Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Thorny design problem

by tlm (Prior)
on Sep 07, 2005 at 21:57 UTC ( [id://490012]=note: print w/replies, xml ) Need Help??


in reply to Re: Thorny design problem
in thread Thorny design problem

How about just having a separate perl script for each company? It seems like the modularized approach isn't really doing all that much except managing a namespace and it adds a lot of complexity for little value that I can see.

I'm glad you brought this up. My main reason for using the module approach was so I could test the various internal functions that support the do_it API function. I find that there's a lot more support available for testing functions if they belong to a loadable module, though, admittedly, this rationale has a tail-wagging-the-dog ring to it.

the lowliest monk

Replies are listed 'Best First'.
Re^3: Thorny design problem
by xdg (Monsignor) on Sep 07, 2005 at 22:45 UTC

    You can have it both ways. See brian d foy's article 'How a script becomes a module'. Make it a module for testing purposes and a script otherwise.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?
Username:
Password:

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

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

    No recent polls found