Re: Export module



hristov.milen@xxxxxxxxx wrote:
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
?

use strict works for the current scope only , not even the entire file

so use strict has to be mentioned every script that needs it

Thanks
Ram


PS:
Note to Spammers: Go ahead , send me spam
ram@xxxxxxxxxxxxx
http://ecm.netcore.co.in/spamtrap.html

.



Relevant Pages

  • Re: Critcize my scripts.
    ... > (I know it's a good practice to put use strict in Perl ... > use strict.The script below work fine if I comment out ... perldoc -f use ... Sub Routines ...
    (perl.beginners)
  • Re: [PATCH] Speed up "make headers_*"
    ... 'use strict' and 'use warnings' is recommended. ... The parentheses are not needed for most of the built-in functions. ... More or less the same comments would apply to the next script as well. ...
    (Linux-Kernel)
  • Re: tricky list comparison problem
    ... > I'm having a bit of an issue with a script I'm working on. ... > - 69078878" as available sectors. ... > use strict(); ... You are telling perl to load the 'strict' module and then you are telling the ...
    (perl.beginners)
  • Re: Passing vars to a "require"d script
    ... > require'd script didn't seem to pull in the form data, ... >> use strict; ... >> use warnings; # main program ...
    (comp.lang.perl.misc)
  • Re: Regular Expression and file editing.
    ... Goksie wrote: ... If i run the script, the changes could not be effected bcos the files is ... use warnings; ... use strict; ...
    (perl.beginners)