[Pdx-pm] Perl Hacks and Productivity Tips
chromatic at wgz.org
Tue Oct 11 18:19:26 PDT 2005
As Josh mentioned last week, I'm working on a new book. The goal is to
share hacks, tips, and tricks that we've learned the hard way for making
Perl more effective. For example, one drawback of using hashes instead
of scalars is that you lose compile-time checking of the keys.
If you use locked hashes (see Scalar::Util), you gain that back.
Another interesting trick is to put a code ref in @INC. You can use
that to see which modules load which other modules, to trace a chain of
dependencies and see exactly what you're loading that pulls in all of
POSIX.pm, for example.
One of my favorites is the use of subroutine attributes to enforce
access control on objects exposed to web services. (Hint: use a proxy
and an authentication token.)
We're looking for things suitable for everyone who's been programming
Perl for a few months to experienced hackers. If you have something
that might work out well (and especially if you want to write it), let
me know, either at the meeting tomorrow or via mail.
More information about the Pdx-pm-list