in reply to mount cifs using perl and sudo and mount

I'm not very familiar with Linux environments, but here's my guess as to what's happening.

The back ticks are similar to system in that it runs the command and waits for the command to return control before allowing the script to continue. I believe what is happening is that the gnome-terminal is launching a new terminal console and is providing it $cmd's value and then is immediately returning control, which is why your script is not waiting after issuing the command.

I'd recommend one of the following.