in reply to Trying to make perl suck less again

how about:
BEGIN { if ( $] < 5.010000 ) { # also set some bool var like $NEW_PERL $INC{'feature.pm'} = 1; package feature; } } use feature ':5.10';

Replies are listed 'Best First'.
Re^2: Trying to make perl suck less again
by chromatic (Archbishop) on Dec 22, 2007 at 20:45 UTC

    Is there room for a backported feature.pm on the CPAN then?

        warnings::compat is somewhat straightforward. I didn't play with 5.10 much and not sure how much of the "feature" interface can be emulated. Making this a CPAN distro will be resulted with high expectations IMHO, since pre-5.10 usage is (and will be) much more than pre-5.6. I think I've discussed a possible utf8 emulation with saper before (don't remember the details) but this was not practical too. However, adding workarounds in the code is much easier than preparing a CPAN release I believe :)
    A reply falls below the community's threshold of quality. You may see it by logging in.