> Dan Muey wrote:
> > I tried both and no go. All is well (IE the thigns specified
> > are Exported to the script) if I do not have 
> strict->import; (Which makes 
> > the script act as if they had 'use strict;' in the script)
> 
> Did you "use strict" or "require strict" anywhere?
> 

package Foo::Monkey;

use 5.006;
use strict;
use base qw(Exporter);

sub import {
        strict->import; # makes script using package act as if it had done 'use 
strict;' itself

        # @EXPORT_OK symbols are Exported ok if strict->import; is not here, even if 
        # I coment out use strict above and do not have use strict 
        # in the script using the package (which I never did all along
}

Any thoughts?

> -- 
> Steve
> 

--
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