I want to run perl -w using env. That works fine on the command line:
$ /bin/env perl -we \'print \"Hello, world!\\n\"\'
H
It's worth noting that Mac OS X interprets characters after the shebang as arguments, so on OS X, the following will work:
#!/usr/bin/env perl -wT
enter code here
However, since one of the points of using #!/usr/bin/env is to foster cross-platform compatibility, it's probably best not to use that syntax even if you're on a Mac mostly.