in reply to Get result STDOUT of exe into scalar/array instead of file

A simple way to capture STDOUT of a program into a scalar is with the qx or ` (backquote) operators. See perlop for more details.
my $command = "$FindBin::Bin\\lib\\lmutil lmstat -c $VALOR_LICENSE_FIL +E"; my $result = qx/$command/; # qx / / # or my $result = `$command`; # backquote ` `