What is the actual result? I get an error in trying to use /bin/env (bad interpreter)...
Honestly I've never seen that used, but it might be chalked up to ignorance. What result do you get with #!/usr/bin/perl?
Another thing, how are you calling this? I know exec and system have different return values. System returns the return code, and exec doesn't return anything useful (since it either fails (command not found) or never returns (forks to new process)
Edit: typo
Comment on Re: Net::SCP::Expect causes error in return code
#!/bin/env perl is a common device for using the PATH environment variable to find perl rather than hard-coding the absolute name. I doubt it is relevant.