Hi guys,

I have a user scenario like this:

I am using a perl script to do a query which takes in two arguments. The
first argument is a string called 'deviceId', the second argument should be
a float point number representing a sensor reading.

The input of SEC is in Json format:

.....
"deviceId" => srb_2
"reading0“ => 0
"reading1" => -2.5
"reading2" => 3.5

"deviceId" is captured using a Single rule, how can I efficiently capture
the value of each "readingN" 's float number using SEC pattern?

Also if what I captured is a float point, how can I pass it as an argument
to Perl script?
Or if what I captured is using a regex like (-*)(\d+).(\d+), how can I pass
it as arguments to Perl script, since I might have 2 or 3 arguments? Can I
transfer the captured digits to a float number in Perl?

Thanks for help!

best,

Yuheng
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to