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 ]

TorgoX (1933)


"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Saturday February 16, 2002
01:01 PM


[ #2908 ]
Dear Log,

I wrote a module the other day: strict::ModuleName.

Basically, use strict::ModuleName in a module/class is a compile-term assertion that the current package name jives with the way that that file is named.

It's basically just for catching those annoying cases where you name the module Foo/ but you start out the file with package Foo::Barbaz;. Adding use strict::ModuleName; after that will catch that!

(Implementation note: the module gains extra slack by applying to itself.)

You are welcome to now praise the module.

You are also welcome to bray "But who'd ever want that! I don't ever make mistakes!", but do bear in mind that I still have that ice-axe.

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.