![]() |
PerlScript support
Consider adding "PerlScript" as a listed ProgId for scripts and adding the following XML chunk to VisBuildPro.System.scripts.
************************************************** ******************** The views and opinions expressed in this message are those of the author. The contents of this message have not been reviewed or approved by Intel. ************************************************** ******************** |
Bugs in 5.1
Thanks for a great response in getting this added to 5.1 guys. Unf. you've got a few bugs.
First of all there are some typos in vbld_FileDateModified that break it completely. 614: "time" s/b "Time" 617: "time" s/b "Time", in date format need "M" not "m" 621: "time::local" s/b "Time::Local" Second, you have 2 copies of vbld_AddDelimValue. The second should just override the first without really causing a problem, but it could cause maintenance issues for you in the future. Finally, just a note on style. On lines 635 and 799(781 if you deal with #2 first) you have trailing "if" modifiers. It is not required but generally considered good style to add an extra prefix tab to make these really obvious. ************************************************** ********************* The views and opinions expressed in this message are those of the author. The contents of this message have not been reviewed or approved by Intel. ************************************************** ********************* |
Argh. The editor so helpfully lowercased those strings when they were pasted in (you'll probably want to disable the 'Fixup text case' option in the script editor right-click options dialog when editing PerlScript). The download has been updated with a fix for the typos (except that I couldn't see any formatting difference in the last two lines you mentioned).
|
Quote:
As for the formatting difference, the issue is that in C/C++, Java, etc you can do this: Code:
if(x < 1) Code:
if($x < 1) Code:
$x = 1 if($x < 1); Code:
$x = 1 |
All times are GMT -5. The time now is 07:15 AM. |
Copyright © 1999-2023 Kinook Software, Inc.