2016-09-30 12:20 GMT+03:00 Jaren Peich <[email protected]>:
> Hi Risto,
>
> I have a little doubt that i haven“t seen in the documentation.
> I want to detect and keep some data from the logs and then read the context
> again and extract this data to process this info throught a perl function.
>

...

> action  = eval %o ( \
> $i=0;\
> my(@arraymids)=();\
> ####################################\
> #Here i want to read again the context and extract the values. Add to the
> array for processing.\
> @midcont=("52366","52365","52364");\
> ###################################

I am still not sure whether I have understood the problem correctly,
but if you would like to access the event store of the SEC context
from a Perl function/expression, I would recommend to use the 'copy'
action before the Perl code is invoked. For example, if the event
store of context TEST contains events "test1", "test2" and "test3",
then the following action

copy TEST %events

will set the action list variable %events to the following string
"test1<NEWLINE>test2<NEWLINE>test3".
After the %events variable has been set, you can pass it as an input
parameter to the Perl function invoked with 'lcall' action. If you are
using 'eval', the %events variable can be directly accessed from the
Perl code, since it is substituted before each compilation and
execution. (Again, I would take the opportunity and recommend the use
of 'lcall' instead of 'eval', since 'lcall' is much more efficient.)

kind regards,
risto

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to