[PATCH] Git.pm: require Perl 5.6.1
- From
- Lea Wiemann <lewiemann@gmail.com>
- Date
- Aug 13, 2008, 22:30 UTC
- Message-ID
- <1218666615-5152-1-git-send-email-LeWiemann@gmail.com>
- In-Reply-To
- <48A36002.1030705@gmail.com>
File::Temp is only in Perl 5.6.1, so Git.pm won't usually work with older Perl versions; this gives a more descriptive error message ('Perl version too old'), rather than erroring out with a 'File::Temp not found' message. (File::Temp is probably not installable on older Perl version anyway.)
Signed-off-by: Lea Wiemann <LeWiemann@gmail.com> --- perl/Git.pm | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/perl/Git.pm b/perl/Git.pm index 405f68f..91c3fc6 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -96,6 +96,9 @@ increase notwithstanding). =cut +# File::Temp is only in core as of Perl 5.6.1. +use 5.006001; + use Carp qw(carp croak); # but croak is bad - throw instead use Error qw(:try); use Cwd qw(abs_path);
-- 1.5.6.3.539.g5ceae