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 ]

Journal of jjore (6662)

Monday December 11, 2006
01:59 PM

User pragmas now easier

[ #31882 ]

You can subclass pragma.pm and it does the right thing. It also uses namespaces so someone else's pragma won't stomp on your pragma. Woot.

use XXX 'foo' => 1;
...
 
no XXX 'foo';
 
package XXX;
use pragma -base;
1;

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.