Isn't it odd how we pick up random tips here and there?
Last week I showed someone the env perl trick.
#!/usr/bin/env perl
As the shebang line. This uses whatever Perl is first in your path. Today they showed me back in return the handy "recursive_test_files" option to Module::Build that lets you put subdirectories of tests in "t/". Sweet.
The best tip I've learnt and passed on (which I'm sure everyone else knows about by now) is using \G in the mysql shell. This prints out results with a line per column rather than trying to render some kind of table, meaning that things take way more space to print out but don't fall over horribly when the output is wider than the screen and wrapping occurs.
Hmm. I should apt-get install ispell on this box. Oh well, you'll have to put up with my speeling mistkes for a while.
Re:So what if ...
2shortplanks on 2004-03-16T10:26:32
You're screwed and you need to rewrite your shebang. You're in no worse situation than you were previously - it's a tip, not a wonderful catchall solution:-). The advantage is many people tend to have env in the same place, and more importantly (unlike perl) people normally don't care about what version of env they run.