xsawyerx / template-plugin-cgi

Interface to the CGI module for Template::Toolkit
MIT License
0 stars 0 forks source link

Notice while using cpan-outdated that cpanm installs the mod forever #2

Open stepht opened 2 years ago

stepht commented 2 years ago

Hi Todd, sawyer,

probably a bump-version pb. should be 3.101 no?

% steph@kerangi (/tmp/cpanm_t.d) %
% perlw -MLb -E ' use Template::Plugin::CGI; say $INC{"Template/Plugin/CGI.pm">
/tmp/cpanm_t.d/p5lib/lib/perl5/x86_64-cygwin-threads-multi/Template/Plugin/CGI.pm
3.010

% steph@kerangi (/tmp/cpanm_t.d) %
% history | tail -n -1
23      perlw -MLb -E ' use Template::Plugin::CGI; say $INC{"Template/Plugin/CGI.pm"}; say Template::Plugin::CGI->VERSION'

hth --sgt p.s I am currently testing lots of modules on various cygwin versions both stock and own that's how I found out the pb

tzccinct commented 1 year ago

I had a similar problem on Cygwin. v3.101 is installed under /usr/local/share/perl5/site_perl/5.32/, but v3.100 was somehow installed under /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/ that took precedence over the former directory on @INC.

The simple solution is to remove the old v3.100 file /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Template/Plugin/CGI.pm manually.