On Tue, Feb 17, 2015 at 5:40 PM, sri <[email protected]> wrote: > *FindBin(3)* >> KNOWN ISSUES >> If there are two modules using "FindBin" from different >> directories under the same interpreter, this won't work. Since "FindBin" >> uses a "BEGIN" block, it'll be executed only once, and only the first >> caller will get it right. This is a problem under mod_perl and other >> persistent Perl environments, where you shouldn't use this module. Which >> also means that you should *avoid using "FindBin"* in modules that you >> plan to put on CPAN. To make sure that "FindBin" will work is to call the >> "again" function: >> > > https://github.com/kraih/mojo/blob/master/lib/Mojo/Server.pm#L49 >
Oh! Is it that line that allows us to use FindBin in our CPAN modules without consequence, then? That is, because of your use of FindBin->again our apps are in the clear and exempt from the recommendation to "avoid using FindBin"? -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
