rpike has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
Can comeone explain to me thoroughly how use and require actually work and the differences between them? I'm having some trouble figuring out how they differ and such. I wanted to include a file in-line in a program as though a library item, whereby the main code would flow down through and take that include as though stored there initially. If I put a require statement instead of a loop with other statements in it the values would get lost on each time the required file got hit. Any helpful information would be greatly appreciated. Thanks.
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Understanding use and require fully
by pc88mxer (Vicar) on Aug 01, 2008 at 14:35 UTC | |
by chromatic (Archbishop) on Aug 01, 2008 at 17:44 UTC | |
Re: Understanding use and require fully
by pjotrik (Friar) on Aug 01, 2008 at 14:36 UTC | |
by msk_0984 (Friar) on Aug 02, 2008 at 09:12 UTC | |
Re: Understanding use and require fully
by olus (Curate) on Aug 01, 2008 at 14:39 UTC | |
Re: Understanding use and require fully
by shmem (Chancellor) on Aug 01, 2008 at 15:25 UTC | |
Re: Understanding use and require fully
by rpike (Scribe) on Aug 01, 2008 at 15:36 UTC | |
by jethro (Monsignor) on Aug 01, 2008 at 16:12 UTC |
Back to
Seekers of Perl Wisdom