2012/10/20 Mark D. Nagel <[email protected]>: > [meant to send this to the list, not only Risto -- sorry for the dup, > Risto!] > > On 10/18/2012 12:02 PM, Risto Vaarandi wrote: >> I am thinking about having a rule like >> >> type=Parse >> ptype=PerlFuncN >> pattern=sub { ... ; return %hash } >> varmap=event1 > > This sounds very cool, but is it really needed? Could you just not use > a Single rule with continue=takenext and action=none? The important > thing is to populate the varmap, right? But, if you think the syntactic > sugar is worth it, please go ahead! Or, would there be some issue I'm > not seeing with just using Single like that? >
hi Mark, a separate rule type is one option, but in my other mail I was actually suggesting your approach -- to have an improved PerlFunc pattern type, from which named match variables could be returned. In this way, the parsing results can be stored with 'varmap' rule field, and reused from other rules quite easily. with kind regards, risto > Regards, > Mark > > -- > Mark D. Nagel, CCIE #3177 <[email protected]> > Principal Consultant, Willing Minds LLC (http://www.willingminds.com) > cell: 949-279-5817, desk: 714-495-4001, fax: 714-646-8277 > > ** For faster support response time, please > ** email [email protected] or call 714-495-4000 > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Simple-evcorr-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Simple-evcorr-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
