in reply to Re^3: execute vbscript code inline in Perl script
in thread execute vbscript code inline in Perl script

Try

#!perl use strict; my $final = qx("cscript out2.vbs //NoLogo"); print "Final: --> $final\n"
poj

Replies are listed 'Best First'.
Re^5: execute vbscript code inline in Perl script
by pryrt (Abbot) on Sep 08, 2017 at 17:09 UTC
    ++poj: by the time I had my reply typed, you'd already posted. :-( My only additional recommendation would be to chomp($final), or chomp(my $final = qx("cscript out2.vbs //Nologo"));, so that slick.user doesn't have a surprise newline in $final.
      That's look good! Thank you!