in reply to execute vbscript code inline in Perl script
There are three ways to run an external program from perl. The function qx() returns the STDOUT as a string. The function system returns the vb script exit code. The function exec never returns.
In your case use qx() to run your vb script and capture the output in a varible like my $final = qx(vbscript)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: execute vbscript code inline in Perl script
by haukex (Archbishop) on Sep 08, 2017 at 15:09 UTC | |
|
Re^2: execute vbscript code inline in Perl script
by slick.user (Acolyte) on Sep 08, 2017 at 16:40 UTC | |
by slick.user (Acolyte) on Sep 08, 2017 at 16:45 UTC | |
by poj (Abbot) on Sep 08, 2017 at 16:59 UTC | |
by pryrt (Abbot) on Sep 08, 2017 at 17:09 UTC | |
by slick.user (Acolyte) on Sep 08, 2017 at 17:42 UTC |