in reply to Re^2: Including files
in thread Including files
Yeah, well, I can't speak for the person you're sighing about but I did read the article. It says "Only in the simplest of situations you can get away with abusing require as if it were some kind of include(), but it's easy to get bitten by how it works: it only loads any given file once."
I don't get it. That's *exactly* how I want includes to work. In fact, in C I have to add macro definitions and ifs to get include files to include only once. So now tell me again why I'm not supposed to just use require to read in a library of functions? I guess I'm just simple. So what am I missing other than modules are a cooler way to do it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Including files
by Athanasius (Archbishop) on Aug 30, 2014 at 04:04 UTC | |
Re^4: Including files
by Anonymous Monk on Aug 30, 2014 at 07:10 UTC |
In Section
Tutorials