gnum.prul has asked for the wisdom of the Perl Monks concerning the following question:
Hi All!
I'm wondering where can I find an in-depth documentation on how require/use work scopewise? Let's say I have:
What does really happen here? How does it differ if I require Mod outside of any subroutine/block? Thanks!sub coolsub { require Mod; ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: 'require/use' scoping
by shmem (Chancellor) on Jan 29, 2008 at 07:12 UTC | |
Re: 'require/use' scoping
by plobsing (Friar) on Jan 29, 2008 at 05:12 UTC | |
by gnum.prul (Initiate) on Jan 29, 2008 at 15:04 UTC | |
Re: 'require/use' scoping
by BrowserUk (Patriarch) on Jan 29, 2008 at 07:48 UTC | |
Re: 'require/use' scoping
by hipowls (Curate) on Jan 29, 2008 at 08:00 UTC | |
Re: 'require/use' scoping
by brian_d_foy (Abbot) on Jan 29, 2008 at 15:26 UTC | |
by tye (Sage) on Jan 29, 2008 at 15:49 UTC | |
by brian_d_foy (Abbot) on Jan 29, 2008 at 17:11 UTC | |
by runrig (Abbot) on Jan 29, 2008 at 21:43 UTC | |
by tye (Sage) on Jan 29, 2008 at 17:52 UTC | |
by shmem (Chancellor) on Jan 29, 2008 at 21:34 UTC | |
by gnum.prul (Initiate) on Jan 29, 2008 at 16:01 UTC | |
Re: 'require/use' scoping
by Anonymous Monk on Jan 29, 2008 at 07:13 UTC |
Back to
Seekers of Perl Wisdom