You might want to consider adding a Test::MinimumVersion test script
to the list of RELEASE_TESTING-only tests.
It's able to pick up this sort of thing before it gets to CPAN without
you needing to actually test it on the lower version.
It won't get everything, but it should find anything that is visually obvious.
If you want a standard one that you can just drop in, here's the one I
use for all my modules.
http://svn.ali.as/cpan/tools/shared/99_pmv.t
Adam K
2009/5/21 Slaven_Rezic via RT <bug-Template-Toolkit@rt.cpan.org>:
Show quoted text> Wed May 20 10:32:53 2009: Request 46250 was acted upon.
> Transaction: Ticket created by SREZIC
> Queue: Template-Toolkit
> Subject: 2.20_3 is not compatible anymore with 5.6.x
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: SREZIC@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=46250 >
>
>
> This change in Template/Context.pm
>
> +use constant {
> + EXCEPTION => 'Template::Exception',
> + BADGER_EXCEPTION => 'Badger::Exception',
> +};
>
> possibly causes the following errors in perl 5.6.2:
>
> failed to create context: failed to load Template/Context.pm: Constant
> name 'HASH(0x205378f0)' has invalid characters at
> mnt/i386/var/tmp/CPAN-build/Template-Toolkit-2.20_3-SlZQcV/blib/lib/Template/Context.pm
> line 36
>
> I think this can be easily fixed by using two "use constant" lines.
>
> Regards,
> Slaven
>
>