On Jan 17, 2004, at 3: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;
Then in my script:
#!/usr/bin/perl
use Foo::Monkey;
No.
Try to think about the Issue of Scoping.
I can appreciate the idea that it would be cooler if one could start with say
use Foo::Monkey;
and have it contain
#!/usr/bin/perl use strict; use warnings; use diagnostics;
and work in the sort of
#include "stockHeaderStuff"
way that would turn it into a one liner.
Just FYI, I believe this is on the change list for Perl 6 in a kind of customizable pragmas form. I know Perl 6 is still a long way off, but I think the idea is interesting.
I believe I read that strict and warnings are supposed to be defaults in Perl 6 modules too.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>