-
Perl in VB
Does anyone here know if there is a way to use a perl script as a module for VB?
For example.. Have a perl script..
sub add {
my (a,b) = @_;
return a+b;
}
...
And in Vb be able to call it with simply..
MsgBox add(1,2) ..or something..
This is just a simple example.. But can it be done?
-
You have to
Code:
Shell "C:\Program Files\perl\PCPerl myscript.pl"
where PCPerl is the name of some windows version of the Perl interpreter. You can't run linux based perl interpreters from Windows apps.