in reply to Re: return a variable from command line execution to perl
in thread return a variable from command line execution to perl

Thank you Corion. I figured out a different way. use backticks and then echo the variable at the end. $dbserv=`call set_prop.cmd db.server.name dbserver & echo %dbserver%` This worked fine.
  • Comment on Re^2: return a variable from command line execution to perl

Replies are listed 'Best First'.
Re^3: return a variable from command line execution to perl
by Anonymous Monk on Aug 16, 2014 at 14:45 UTC

    If you'd like some nicer error handling for the backticks, see capture from IPC::System::Simple.