From: "Aaron Hawryluk" <[email protected]> > IF it's workable, you will need to make sure that the script syntax is > converted to Perl. Structures like "If Not x Then y", while workable > in VBScript, are either syntactically ambiguous or just plain don't > work in Perl. > In other words, just replacing Variable with $Variable and > Object.Child with $Object->child isn't going to help you much. For > example: > > If Not txtFruit.Value="" Then > > Needs to convert to: > if($txtFruit->Value != ""){ > }
Of course I have also converted those lines. > I'm also not 100% sure on the "txtFruit" id being automatically read > in as $txtFruit in PerlScript, I think you would need to figure out > how PerlScript accesses the DOM. Well, exactly this is what I don't know. How can perl access the DOM. I found too little documentation about PerlScript in general, and that documentation and the sample files I found were very old, and most of the sample files don't even work. > Again, that's if PerlScript can even > run as a client-side scripting engine, which I'm not sure of. I've > never tried running PerlScript on the client-side... does it run as an > IE addon or something? > And even beyond that, if you don't mind my asking, why write > client-side code that would require the user to install an ActiveX > scripting object just to work? Because I don't know JScript nor VBScript and because creating a program in those languages would be much harder anyway. Octavian _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
