my $password = '...'; # Not the password, but a shell literal of the password. system( ... "-p$password" ... );