I call this script reload. It's very handy when I'm working with a variety of codebases that use both Module::Build and ExtUtils::MakeMaker.
#!/bin/bash
if [ -f Build.PL ]; then
if [ -f Build ]; then
./Build realclean
fi
perl Build.PL && ./Build && ./Build test
elif [ -f Makefile.PL ]; then
if [ -f Makefile ]; then
make realclean
fi
perl Makefile.PL && make && make test
else
echo Nothing to reload!
fi