> 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;
> }
> }
>
Nice! I'm not familiar with import() but perldoc explains a bit.
I guess I'm still not clear *how* it does it's magic but it does do it!
Thanks
Dan
> --
> Steve
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>