develooper Front page | | Postings from October 2012

subclassing Action_install

Thread Next
Boyd Duffee
October 11, 2012 09:50
subclassing Action_install
Message ID:
Hi again,

Trying to learn more about custom install.  I ran across the Modifying an
Action section in Module::Build::Cookbook and tried to shoehorn that bit of
code into my script.  When I run
	perl Build.PL
I get
	Can't use string as a HASH ref while "strict refs" in use
when I call the create_build_script() method.  I've attached the Build.PL
file.  What am I doing wrong?

many thanks,

I'm using M::B v0.4 / Fedora 13 / perl v5.10.1 x86_64-linux-thread-multi

This is me stepping through the build process with the debugger

1318:	  File::Path::mkpath($self->{properties}{config_dir});
Can't use string ("Module::Build::Custom") as a HASH ref while "strict refs"
in use at /usr/share/perl5/Module/Build/ line 1318.
 at /usr/share/perl5/Module/Build/ line 1318
	Module::Build::Base::write_config('Module::Build::Custom') called at
/usr/share/perl5/Module/Build/ line 1956
	Module::Build::Base::create_build_script('Module::Build::Custom') called at
Build.PL line 56
1258:	    for my $f ( map glob($_), @{ $unlink_list_for_pid{$$} || [] } ) {

Boyd Duffee             Keele University    (01782) 734225
Student Facing Systems
 <DarthBart> Nobody "codes" in Perl. Perl programs are written by eating
             a bag of alphabet pasta and then chasing it with ipecac.
 <xaxa>      My alphabet spaghetti only had A-Z. Perl uses the *other*
             half of ASCII.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About