Hi sgp, --- In [email protected], sgp <[EMAIL PROTECTED]> wrote: > > Sheri wrote: > > > I've updated the script to address block comments and //-style comments > > > > Thank you, I use ; ;; // and /* */ style comments throughout my scripts. > > Got a couple of errors. The first one is a missing local declaration > (I use 'variables must be declared before use' in my pproconf.pcf) > > Variable used before being declared > hpattcomment
Hmn, it should have been hpatcomment (which was declared). misspelled on three lines or so. (Sorry). > > Error occurred near line 42 of script convert_script_to_ini: > hpattcomment=regex.pcreCompile(?"^(\/\/).+", "m") > > The second error is more obscure: > > ERROR: regex.pcreReplace: Option incomprehensible: m > > Error occurred near line 48 of script convert_script_to_ini: > subj=hpattcomment.pcreReplace(subj, ";", "m target:1") > That's an error because "m" is not a valid option in the handle form of the services. hpattcomment (which s/b hpatcomment) was compiled with "m" (multiline) option. So instead of "m target:1", s/b "target:1" in pcreReplace. Will repost a corrected version later, please let me know if using it with your scripts turns up anything else! Thanks, Sheri
