Internally, the match data that match variables represent are kept in Perl
variables, lists and hash tables, and are not interpreted. During the match
variable substitution, they are substituted as strings, and although this
does not allow to pass references, it does not alter string data.
Therefore, as long as you are working with strings, Perl function of the
lcall action should see your input data as is. Things are very different
with eval, where after match variable substitution the resulting code
snippet gets interpreted by Perl.
kind regards,
risto
2013/9/23 Mark D. Nagel <[email protected]>
> On 9/23/2013 11:46 AM, Risto Vaarandi wrote:
> > hi Mark,
> > maybe I am wrong here, but can't the quoting problem be handled with the
> lcall action?
> > For example, lcall %o $+{Message} -> ( sub { ... } )
> > would pass $+{Message} as a string into a precompiled function where it
> can be retrieved
> > from $_[0]. Of course, using eval %o ( $+{Message} ) would indeed
> introduce a quoting
> > problem, since $+{Message} would be substituted into an uncompiled code.
> > I agree of course that accessing $+{Message} from varmap is fastest,
> because $+{Message}
> > does not need substitution into the function parameter list.
> >
>
> That at least provides a path -- I wasn't sure if lcall would also
> interpolate the value.
> If it does not, this is just fine for me!
>
> Thanks,
> 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
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> _______________________________________________
> Simple-evcorr-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users