in reply to Integrating shell and perl

Use system. If you have problems with the password, consider using sudo instead of su.