X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=perl%2FGit%2FI18N.pm;h=40dd8971912d6b387bde7c9bb04cc6896521acec;hb=3e9c6a08c8a99349a2969f5e2c37b77a6bac9b8c;hp=07597dcb93a772caf7b676722c99d330ae947c47;hpb=0dbe6592ccbd1a394a69a52074e3729d546fe952;p=git.git diff --git a/perl/Git/I18N.pm b/perl/Git/I18N.pm index 07597dcb9..40dd89719 100644 --- a/perl/Git/I18N.pm +++ b/perl/Git/I18N.pm @@ -2,7 +2,16 @@ package Git::I18N; use 5.008; use strict; use warnings; -use Exporter 'import'; +BEGIN { + require Exporter; + if ($] < 5.008003) { + *import = \&Exporter::import; + } else { + # Exporter 5.57 which supports this invocation was + # released with perl 5.8.3 + Exporter->import('import'); + } +} our @EXPORT = qw(__); our @EXPORT_OK = @EXPORT;