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

use Perl Log In

Log In

[ Create a new account ]

dagolden (6584)

dagolden
  (email not shown publicly)
AOL IM: xdaveg (Add Buddy, Send Message)

Journal of dagolden (6584)

Thursday December 04, 2008
10:36 PM

Hey Perl Advent, ToolSet gets even better!

[ #38028 ]

I was tickled to find my ToolSet module featured in the 2008 Perl Advent Calendar.

However, in response to the comment that ToolSet didn't support pragmas like "no indirect", I decided it was time for a feature upgrade. Now that Perl 5.10 allows for user pragmas, ToolSet needed more general pragma support.

So ToolSet 0.99 has a new API for pragmas:

# My/Tools.pm
package My::Tools;
use base 'ToolSet';

ToolSet->use_pragma( 'strict' );
ToolSet->use_pragma( 'warnings' );
ToolSet->no_pragma( 'indirect' );

1;

This should work with any simple pragma that uses $^H or %^H without other side-effects during import().

Happy holidays!

-- dagolden

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.