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

Re: How do I process many (conflicting) command line parameters?

by GrandFather (Saint)
on Jun 30, 2017 at 02:21 UTC ( [id://1193882]=note: print w/replies, xml ) Need Help??


in reply to How do I process many (conflicting) command line parameters?

Maybe you should split the processing into a number of tasks and use pipes to plumb them together? Instead of one complicated uber tool you end up with a small number of simple tools that you can chain together to do complicated things. That can work just as well for Windows as it does for *nix.

Premature optimization is the root of all job security
  • Comment on Re: How do I process many (conflicting) command line parameters?

Replies are listed 'Best First'.
Re^2: How do I process many (conflicting) command line parameters?
by ozboomer (Friar) on Jun 30, 2017 at 03:59 UTC

    Heh... it's actually the way I most often build my utilities - the whole idea of a 'software tool' - but there's a trade-off point between having a single tool with lots of options compared to having a lot of different tools (and remembering how everything works); in Linux parlance, you could pipe input/output data streams between cp, sed and cut or you could run a single Perl program with command line options to do one, some or all of the same functions as the individual tools.

    'Your mileage may vary' as they say...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found