--- Michael G Schwern <[EMAIL PROTECTED]> wrote: > Also, using a little known feature of Perl, you can get Test::Harness > 2 to do > this without any modification. Just say "#!/usr/bin/php" or > "#!/usr/bin/env > php" or whatever on the #! line of the test and Perl will honor it > and run the program through php.
Yeah, I found that out when I was writing Ruby code and accidentally hit ',r' in vim. That binding automatically attempts to run the current code through perl. Boy was I suprised when "puts 'Hello world!'" worked! Side note: If anyone likes vim but doesn't know how to do bindings like that, drop something this into your .vimrc: noremap ,r :!time perl -Ilib %<cr> Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http://use.perl.org/~Ovid/journal/