Results 1 to 2 of 2

Thread: Perl in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    Ohio
    Posts
    7

    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?

  2. #2
    jim mcnamara
    Guest
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width