I am having an issue with retrieving the correct information when attempting to run a shell command. When i run the command on the server i get the correct output, but i do not get the same when it is run through a perl script.
$test = `pkginfo | grep TestPackage | awk '{print $2}'`;
print "$test\n";
the output when running directly from the shell is:
TestPackage
While the output from the perl script is:
application TestPackage Description
Why would this be different?