This seems like a situation I'm having with a co-worker who insists on starting every .pm with
so that he can run perl -c on the file and have it find all its modules. He seems resistant to just have the compile-check run a more advanced script that initializes the library path for him.use Cwd (); use lib Cwd::abs_path(__FILE__) =~ s{/@{[__PACKAGE__ =~ s{::}{/}gr] +}\.pm$}{}r; use lib Cwd::abs_path(__FILE__) =~ s{lib/@{[__PACKAGE__ =~ s{::}{/}gr] +}\.pm$}{Schema/lib}r;
In reply to Re: Running modulino inside BEGIN
by NERDVANA
in thread Running modulino inside BEGIN
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |