in reply to How do i run several programs in the same perl script???

Another way of capturing the output of an external program is:  open (CMD, "command |");. Read up on this with perldoc perlopentut.