On Jan 18, 2004, at 12:12 AM, Steve Grazzini wrote:

On Saturday, January 17, 2004, at 06:21 PM, Dan Muey wrote:
I was curious if it's possible to have a module like so:

package Foo:Monkey;

use strict;
use warnings;

You can call "strict->import" like this:


    package Foo::Monkey;
    sub import {
        for my $pragma (qw(strict warnings)) {
            require "$pragma.pm";
            $pragma->import;
        }
    }

Wow. You learn something new all the time. Thanks!


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to