use ExtUtils::MakeMaker; use strict; require 5.008002; # Remember (like I didn't) that WriteMakefile looks at @ARGV, # so an alternative way to configure a debugging build is: if (@ARGV && $ARGV[0] eq '-d') { warn "Configuring a debugging build of PadWalker\n"; print STDERR < 'PadWalker', 'VERSION_FROM' => 'PadWalker.pm', # finds $VERSION 'LIBS' => [''], # e.g., '-lm' 'INC' => '', # e.g., '-I/usr/include/other', 'NO_META' => 1, );