Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: execute vbscript code inline in Perl script

by poj (Abbot)
on Sep 08, 2017 at 16:59 UTC ( [id://1198966]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1198966]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-03-28 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found