Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

2shortplanks (968)

  (email not shown publicly)
AOL IM: trelane2sp (Add Buddy, Send Message)
Yahoo! ID: trelane2sp (Add User, Send Message)

Mark Fowler has never been the same since he was elected leader of the London Perl Mongers. The strain manifests itself mainly in releasing various [] modules [] to CPAN, giving talks [], and use of the Trelane nick on for endless procrastination. Doctors are still seeking a cure.
Monday March 15, 2004
10:25 AM

Random Bits

[ #17911 ]
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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • ... you come across a machine where env is in /bin, or doesn't exist at all?
    • 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.