in reply to Using require in a module and alongside that module in a program
If this is a get-it-done moment and not for the long term, you can make the import happen with do instead of require. require 'file'; is essentially do 'file' or die "Can't locate file in \@INC"; with some extra overhead to make it happen only once.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using require in a module and alongside that module in a program
by alextor (Novice) on Aug 15, 2011 at 15:36 UTC | |
by kennethk (Abbot) on Aug 15, 2011 at 21:11 UTC |