Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Heard of it? I wrote it!

    The people in the #moose channel were (before the days of Devel::REPL and still some today) writing lots of one-liners to test assumptions in Moose. perl -e'package Class; use Moose; [assumption test here]' became annoying so I spent an hour one afternoon whipping up oose.pm which will automatically stick the package Class; use Moose; at the top of your file using a source filter (one of the few non-evil ways to use a source filter).

    This little source filter dropped the boilerplate down to perl -Moose -E'[assumption test here]', and with a little shell aliasing that Shawn Moore pointed out alias moose='perl -Moose -E'; moose '[assumptions test here]'

    • well I did know it exists few days ago... when I first saw it in Moose dist [cpan.org] the WTF came to my mind first. but when i saw the usage I found it really nice. nice enought to blog about it ;-)