in reply to Re: Eval in RegEx ...
in thread Eval in RegEx ...

I tried this before but it only works for single output. Actually I read the content ($html) from the template file which has many lines of Perl code to eval embeded in multiple <?perl ?> tags. For every string I had to define it first otherwise it says "Useless use of a constant (...) in void context at (eval ...) line ...". Anyway thanks for reply.

Replies are listed 'Best First'.
Re^3: Eval in RegEx ...
by ww (Archbishop) on Dec 07, 2013 at 12:48 UTC

    Actually, hdb's suggestion works as long as EACH <?perl ... /> is embedded in ITS OWN <div> ... </div>.