in reply to Re^2: Using SSH and SCP in a perl script with taint flag
in thread Using SSH and SCP in a perl script with taint flag
That would suggest that your PATH is lacking. Try "which ssh" from a command line to sort out where it actually is. Setting PATH explicitly as you do is something you have to do in taint mode; you just need to make sure you put everything in or invoke it with a full path.