in reply to Require in modules...?
Switch regularly creates hard (impossible) to debug problems. It's not meant for use. It's not even needed now that 5.10 has given/when.
do 'file.pl'; is more appropriate than require 'file.pl'; for files that don't have a package statement.
Unless data_defs.pl creates and populates an object with the data, it doesn't exist in any object.
|
|---|