Adaptation of DAGOLDEN's script for perlbrew.