in reply to Re: namespaces and variable initilization with require 'file'
in thread namespaces and variable initilization with require 'file'
works just fine for me. I understood a big difference (though by no means the only one) to be between whether you want to allow the file to be read multiple times, in the sense that$ echo 'print "Included a.pm\n";' > a.pm $ perl -e 'require a' # Included a.pm
do different things.$ perl -e 'require a; require a' # Included a.pm $ perl -e 'do "a.pm"; do "a.pm"' # Included a.pm\ # Included a.pm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: namespaces and variable initilization with require 'file'
by ikegami (Patriarch) on Oct 02, 2008 at 02:02 UTC |