Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: The system command and waiting for the child process to finishby betterworld (Curate) |
on Sep 29, 2008 at 11:38 UTC ( [id://714321]=note: print w/replies, xml ) | Need Help?? |
If $file contains "&" or other funny characters, you should use the several-arguments way of calling system. Otherwise "&" will instruct the shell to start mplayer in the background, which would explain your problem.
I prefer this form unless I really need the shell's functionality.
In Section
Seekers of Perl Wisdom
|
|