This has nothing to do with autovivification. That term means perl automatically treating undef in an lvalue reference context as evaluating to a reference to a newly created item of the correct type (arrayref or hashref); see perlref for the definition.
The suggestion is to use a bareword package name instead of a string path and is saying that best practices would be to write a module (which would be contained in the file incl/common.pm) and then use require incl::common; (no extension) and let perl locate the file in one of the directories listed in PERL5LIB (see perlrun and perlvar for more on that).
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Autovivification with require
by Fletch
in thread Autovivification with require
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |