Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cwest (1514)

  (email not shown publicly)
AOL IM: caseyrwest (Add Buddy, Send Message)

Perl geek.

Journal of cwest (1514)

Thursday June 07, 2001
12:26 PM

Latest Evil Idea

[ #264 ]
Get this: use VBScript;

That's right, a VBScript Compiler in Perl. With Parse::RecDescent, parsing and processing a language like VBScript should be easy, in comparison to other languages.

There are obvious benifits to this, at least:

  • GPL and AL, cross platform VBScript/ASP server.
  • VBScript to Perl conversion.
  • With Apache/mod_perl you don't have to pay the Microsoft Tax if you're familiar with VBScript but want to ease your way out.

In any case, there are a few problems, but I have solutions. An extensible design would allow for people who want to port existing COM object to Perl, keeping the same interface they have for VBScript. Things like CDONTS, the standard mailer, would be trivial. And anyone could supply libraries to mimic the behavoir of the original COM objects. The ASP objects could also be re-writen for folks who want to set up Apache to run an ASP with VBScript environment.

This is all brought about by the fact that I'm being somewhat forced to write VBScript for a project at work and, well, the language sucks. The cross platform and vbs2perl converter are what lure me in. At least I coult fake myself into believing I'm using a cool language. :-)

Closing thoughts:

perl -MO=Deparse default.asp

vbs2perl default.asp | tee default.cgi

perl -MVBScript -e 'Dim who
who = "Casey"
Response.Write("Hello, " _
& who)'

SetHandler perl-script
AddHandler VBScript