Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Avoiding Greenspun's Rule; scripting within Perl

by jandrew (Chaplain)
on Mar 21, 2012 at 04:18 UTC ( #960715=note: print w/replies, xml ) Need Help??

in reply to Avoiding Greenspun's Rule; scripting within Perl

At the risk of oversimplifying your issue it may be that you can solve your if-then-else parsing with dispatch tables. If this is a new concept then give it a once over. The main link is here. The Author is Mark Jason Dominus++

If what you were really looking for is very open ended parsing of potentially diverse inputs this may not be the answer, but as Robert Morris implied even codeing in Common Lisp is suceptable to Greenspun's 10th rule.

As a consequence the solution may be a partial abstraction of input handling (dispatch tables) in combination with putting boundaries on the scope of the input.

  • Comment on Re: Avoiding Greenspun's Rule; scripting within Perl

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960715]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-10-23 12:52 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (279 votes). Check out past polls.