New article up on the Apple Developer Connection about scripting on the Mac. Perl gets a nice mention. (I think I saw this linked somewhere else, but I can't remember where.)
This blind usage of #!/usr/bin/env to find the right interpreter was not accompanied by the proper disclaimers, so I sent them feedback through the only form I could find.
Using #!/usr/bin/env is a quick band-aid that will break in practical solutions. First, it requires an additional launch, possibly breaking setuid. Second, it depends on the callers environment, which will almost certainly be different for different invokers, leading to pulling up the wrong Perl/shell/Python/Ruby, etc.
Uncontested use of #!/usr/bin/env (Score:2)
Using #!/usr/bin/env is a quick band-aid that will break in practical solutions. First, it requires an additional launch, possibly breaking setuid. Second, it depends on the callers environment, which will almost certainly be different for different invokers, leading to pulling up the wrong Perl/shell/Python/Ruby, etc.
You'd think peo