Export module

H

hristov.milen

Hi,
I have a module, that I require in some script.

How can I require another module, inside mine and make it global.

For example, if I have in my Some.pm -> 'use strict'
how can I make the strict global, without require it in the main script
?
 
A

anno4000

Hi,
I have a module, that I require in some script.

How can I require another module, inside mine and make it global.

For example, if I have in my Some.pm -> 'use strict'
how can I make the strict global, without require it in the main script
?

You can't. "strict" is lexically scoped and a file is a maximal lexical
scope.

Anno
 
B

Ben Morrow

Quoth (e-mail address removed)-berlin.de:
You can't. "strict" is lexically scoped and a file is a maximal lexical
scope.

use Acme::use::strict::with::pride;

(sorry; someone had to point it out, though :) )

Ben

[Just in case the OP doesn't realise: this module is a joke. It is not
meant for serious use.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top