Thanks for the references. I will check them.
> On Thu, Mar 26, 2009 at 09:51, <dev_n...@zoho.com> wrote: > > How to achieve a parser with Perl? > > I mean I want to put some logic (if...else, loop etc) in config file and > > let perl to parse them, like TCL for iRules. > snip > > This being Perl TIMTOWDI[1]. If you truly need a custom language, > then you will probably find Parse::RecDescent[2] useful. If you > want to use a subset of Perl then Safe[3] is your friend. If you > want to use a different language then you may find a module on CPAN[4] > that will execute it for you (like Data::Lua[5]). > > 1. There Is More Than One Way To Do It. > 2. http://search.cpan.org/dist/Parse-RecDescent/lib/Parse/RecDescent.pm > 3. http://perldoc.perl.org/Safe.html > 4. http://search.cpan.org > 5. http://search.cpan.org/dist/Data-Lua/lib/Data/Lua.pm >
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/