I'm using XPathScript to create form (PerForm) elements in an XML file. I
need interpolation turned on *and* I need to create a 'pre' like:

$t->{'issues'}{pre} ='
sub load_status
{
   # load and return status list from DB for single-select
}
';

The problem is that this matches the regex used to interpolate...  I have
hacked my version to bail and do *no* interpolation if the string matches
"m/^sub\s+.*\{(.+?)\}/ms"  a bt cheesy but works for now.  I'd much rather
see the regex matching improved to not match sub decls...  any ideas? (I'm
not the greatest with perl regex)

    -- CHris


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to