Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: KISS vs Feature set

by AidanLee (Chaplain)
on Jan 25, 2002 at 18:04 UTC ( [id://141497]=note: print w/replies, xml ) Need Help??


in reply to KISS vs Feature set

First off, I agree with the first sentence of your last paragraph. And it wouldn't hurt to provide multiple WTDI in the module itself if you forsee them useful to a large segment of your users (if you have a pretty good idea lots of people want it, and it "fits" within your module's domain, then you're tactically circumventing a lot of reinvented wheels).

What I *would* suggest for your specific module, is to make the simplest case the default one. You're mimicking command line calls, so it's best to not "expect too much" from your implementations. So, IMHO, fgrep gets to return the array of matches, fgrep_hashref gets to return the AoH with the extra meta information.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-16 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found