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