Quick question,
Is there a way to pipe a command into another command via perl like you can in the *Nix command line?
For example:
free -m | grep Mem
How would I be able to do the "piping" in Perl?
Quick question,
Is there a way to pipe a command into another command via perl like you can in the *Nix command line?
For example:
free -m | grep Mem
How would I be able to do the "piping" in Perl?
You can invoke the command exactly like that:
From the documentation:
You can do the same with other methods for invoking external commands, like
open
: