in reply to Capturing command outputs

Capturing command output can be done with backticks $type= `file /home/patt/DCUProject/cli.pl`. Another possibility is to open a pipe, see 'perldoc -f open'