in reply to using bash commands in perl program
See system, backticks/qx in perlop under "Quote and Quote-like Operators", and the special pipe open case in open. You might also be interested in IPC::Run.