http://www.perlmonks.org?node_id=1076759


in reply to Perl script to wait till the command execution completes.

system() waits until the command completes anyway. If yours isn't it may be because you are not escaping the values passed to it. If any of your variables such as $Login_Password has an unescaped ampersand, for example, you are going to run into problems.

You could fix this, but marto's suggestion of using DBI would be a far better approach in the first place.