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

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