Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Module for Conditional Parsing

by choroba (Cardinal)
on Mar 30, 2015 at 12:26 UTC ( [id://1121814]=note: print w/replies, xml ) Need Help??


in reply to Module for Conditional Parsing

Please, give us a bigger picture. If the "ad hoc conditionals" will only come from the programmer (i.e. the code), there's no need for a structure, just use an anonymous subroutine:
my $allowed = sub { grep $_[0] == $_, 10022, 96813, 55401 }; if ($allowed->($redis_handle->get('key')) { # do something }

But, if users will be creating those conditionals, you need a language + parser (or a GUI to build the conditionals graphically).

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-16 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found