NAME

Win32::VBScript - Run Visual Basic programs

SYNOPSIS

use strict;
use warnings;

use Win32::VBScript qw(:all);

# This is the procedural interface:
# *********************************

my $p1 = compile_js ([ qq{WScript.StdOut.WriteLine("Bonjour");} ]); cscript($p1);
my $p2 = compile_vbs([ qq{WScript.StdOut.WriteLine "Hello"}     ]); cscript($p2);

# This is the OO interface:
# *************************

compile_js ([ qq{WScript.StdOut.WriteLine("Test1");} ])->cscript;
compile_vbs([ qq{WScript.StdOut.WriteLine "Test2"}   ])->cscript;

# And with vbs, of course, you can use MsgBox:
# ********************************************

compile_vbs([ qq{MsgBox "Greetings Earthlings..."} ])->wscript;

DESCRIPTION

This module allows you to invoke code fragments written in Visual Basic (or even JavaScript) from within a perl program.

AUTHOR

Klaus Eichner <klaus03@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2016 by Klaus Eichner

All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the artistic license 2.0, see http://www.opensource.org/licenses/artistic-license-2.0.php