# This works system("cat foo >bar"); # ">bar" being passed to cat as an argument # and there's no file named ">bar" system('cat', 'foo', '>bar');