Subject: | non-localized attribution to $_ in main:: produces unwanted side-effects |
Issue was found when importing Catalyst::Plugin::Geography started
breaking Catalyst with:
Could not load class (__END__) because : Can't locate __END__.pm in @INC
originally, Catalyst loaded plugins via:
Class::MOP::load_class($_) for @plugins;
$_ is being set to __END__ due to:
while(<DATA>){
chomp;
last if $_ eq '__END__';
Catalyst has been fixed to avoid $_ and dodge the issue, however, it is
recommendable to localize $_ in order to prevent future trouble.