in reply to Running modulino inside BEGIN
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Running modulino inside BEGIN
by LanX (Saint) on Apr 14, 2024 at 21:08 UTC |