Don't ask to ask, just ask | |
PerlMonks |
Re: execute vbscript code inline in Perl scriptby NetWallah (Canon) |
on Sep 08, 2017 at 05:17 UTC ( [id://1198900]=note: print w/replies, xml ) | Need Help?? |
In addition to the options Vinoth mentions, you can use "open", and various "Capture" modules. The simplest is probably the "qx" function, AKA backticks. The important thing is to figure out how to get data out of the VB script. One option is to use the exit code: Another is to print data to STDOUT: In the perl script, you would get the information as $?<<8 (For exit code) or the return value of "qx". THere are sever other, more complicated options as well .. pipes, sockets, and other IPC mechanisms. All power corrupts, but we need electricity.
In Section
Seekers of Perl Wisdom
|
|