if you want to get the same output that a command, you could execute external commands. Look at backticks and open.
http://www.perlhowto.com/executing_external_commands
Be careful with external commands: check your arguments if they are provided by a user interface, another command, input file ("Command injection...").
http://perl-begin.org/topics/security/code-markup-injection/