| latest documentation | Contained in the latest distribution. |
latest - Use the latest Perl features
This document describes latest version 0.03
use latest;
The line
use latest;
is roughly equivalent to
use strict; use warnings; use $];
except that 'use $]' doesn't work.
The main use case is to
use latest;
at the top of your tests to shake out any obscure problems that might result from your code being used by a program that requires the latest Perl version.
latest requires no configuration files or environment variables.
None.
None reported.
Please report any bugs or feature requests to
bug-latest@rt.cpan.org, or through the web interface at
http://rt.cpan.org.
Andy Armstrong <andy@hexten.net>
Copyright (c) 2009, Andy Armstrong <andy@hexten.net>.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
| latest documentation | Contained in the latest distribution. |
package latest::feature; BEGIN { eval 'require feature'; if ( $@ ) { eval 'sub import {}'; # NOP if we don't have feature } else { our @ISA = qw( feature ); eval 'sub unknown_feature_bundle {}'; # Ignore unknown bundle errors } } package latest; use warnings; use strict; use version; use Carp;
our $VERSION = '0.03';
sub import { strict->import; warnings->import; ( my $v = version->new( $] )->normal ) =~ s/^v/:/; latest::feature->import( $v ); } 1; __END__