in reply to Executing a command after the preceding command finished processing

If you want the Perl script to wait for the shell command to complete then the easiest way is to remove the ampersand '&' from the command.
  • Comment on Re: Executing a command after the preceding command finished processing