To execute a command and wait for it to finish you can use system or backticks. (`` or qx//). (see perlop). Each option for executing external programs behaves somewhat differently, so choose with care.
Comment on Re: Having Unix to unzip a file and Perl to wait untill it finishes