Skip Menu |

This queue is for tickets about the Hash-Merge-Simple CPAN distribution.

Report information
The Basics
Id: 58840
Status: resolved
Priority: 0/
Queue: Hash-Merge-Simple

People
Owner: Nobody in particular
Requestors: EVERYBODY [...] cpan.org
KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: (no value)



Subject: Missing dependency: 'Exporter'
Hash::Merge::Simple blindly expects Exporter to already be loaded when a program uses Hash::Merge::Simple. The following unified patch solves the problem. I hope this helps. --- Simple.pm 2010-05-13 20:27:57.000000000 +0200 +++ Simple.pm 2010-06-25 20:49:41.000000000 +0200 @@ -7,6 +7,7 @@ use warnings; use strict; +require Exporter; use vars qw/@ISA @EXPORT_OK/; @ISA = qw/Exporter/; @EXPORT_OK = qw/merge clone_merge dclone_merge/;
Pinging again to encourage an update. This is a minor fix which really is needed.

One person told me they were getting: 

apoc@blackhole:~/Dist-Zilla-Plugin-MetaData-BuiltWith-0.01018204# perl -MDevel::SimpleTrace -Ilib -e 'require Dist::Zilla::Plugin::MetaData::BuiltWith; print qq{ok}'
Can't locate package Exporter for @Hash::Merge::Simple::ISA
	at Dist::Zilla::Plugin::MetaData::BuiltWith::BEGIN(lib/Dist/Zilla/Plugin/MetaData/BuiltWith.pm:12)
	at <eval>(/usr/local/share/perl/5.10.0/Hash/Merge/Simple.pm:12)
	at <eval>(/usr/local/share/perl/5.10.0/Hash/Merge/Simple.pm:12)
	at main::(-e:1)
ok

Fortuantately this doesn't happen for me for some reason, but I can still confirm there is a problem with a simple test:

perl -Ilib -e 'use strict; use warnings; use Hash::Merge::Simple qw( merge ); merge() 
Undefined subroutine &main::merge called at -e line 1.

perl -Ilib -MExporter -e 'use strict; use warnings; use Hash::Merge::Simple qw( merge ); merge()  '  # magically works.




Duh, thanks for reminding me. Added the require line and it's going up on CPAN now By the way Kent, really liked your article on App::perlbrew, great stuff