http://qs321.pair.com?node_id=776511


in reply to Re^2: Passing commands to subroutines
in thread Passing commands to subroutines

Have you read 'perldoc -f system'?
system "foo >bar";
invokes the shell, and it is the shell which does redirection (> <)