System doesn't return anything to the caller other than the return code and signal number. Use backticks, or
qx//, instead e.g.
my $var = `command`; or
my $var = qx/command/;
Compare system with Regexp-Quote-Like-Operators
A user level that continues to overstate my experience :-))