Skip Menu |
 

This queue is for tickets about the Module-Install CPAN distribution.

Report information
The Basics
Id: 5402
Status: resolved
Priority: 0/
Queue: Module-Install

People
Owner: Nobody in particular
Requestors: steve.hay [...] uk.radan.com
Cc:
AdminCc:

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



Subject: abstract_from() doesn't work
abstract_from() doesn't work. To see this, create a sample "Foo" distribution via "h2xs -n Foo -X" and then use this Makefile.PL: use inc::Module::Install; name('Foo'); version_from('lib/Foo.pm'); abstract_from('lib/Foo.pm'); This produces the error Can't use string ("ExtUtils::MM_Unix") as a HASH ref while "strict refs" in use at C:/perl5/lib/ExtUtils/MM_Unix.pm line 3059. Module::Install::Metadata::abstract_from() contains this: $self->abstract(ExtUtils::MM_Unix->parse_abstract($abstract_from)); but line 3059 of ExtUtils/MM_Unix.pm (inside parse_abstract()) is this: my $package = $self->{DISTNAME}; i.e. parse_abstract() really seems to be an object method, but you've called it as a class method. I can obviously work around this by specifying abstract() instead, but the abstract is already written once in the main .pm file and it's a shame to have to write the same information again elsewhere. (Module::Install is all about storing common stuff all in one place, after all!) This is on Windows XP / MSVC++ 6 / Perl 5.8.2 / EU::MM 6.22
Thanks, done in .33.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.