Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^4: Splitting program into modules

by LanX (Cardinal)
on Nov 12, 2018 at 03:19 UTC ( #1225603=note: print w/replies, xml ) Need Help??

in reply to Re^3: Splitting program into modules
in thread Splitting program into modules

> no difference between include() and require

Actually you reimplemented do

require is basically a do that searches through @INC and accepts module::names.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^5: Splitting program into modules
by afoken (Canon) on Nov 12, 2018 at 15:17 UTC
    Actually you reimplemented do

    ..., poorly: do has no 1 MB limit, do keeps track of the current filename for error messages, lexicals from the enclosing scope are not visible to code executed by do, and in case of relative paths other than './' and '../', do searches @INC and updates %INC.


    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1225603]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-09-29 17:04 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (148 votes). Check out past polls.