Re: [PATCH] Remove dependency on IO::String from Git.pm test
- From
- Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
- Date
- Jun 18, 2008, 15:10 UTC
- Message-ID
- <b77c1dce0806180810r46a3e2a5i4eb228e6dc19613d@mail.gmail.com>
- In-Reply-To
- <m37icmol6y.fsf@localhost.localdomain>
2008/6/18 Jakub Narebski <jnareb@gmail.com>:
Show 12 quoted lines
> Michael Hendricks <michael@ndrix.org> writes: > >> Instead of using IO::String to create an in-memory filehandle, use >> open() with a scalar reference as the filename. This feature has been >> available since Perl 5.8.0 (which was released in 2002), so it should >> be available pretty much everywhere by now. > > Besides if I understand correctly gitweb very much requires Perl >= 5.8 > because of required Unicode support. > > Nevertheless adding "use v5.8.0;" or "use 5.008_000;" would be I guess > good idea.
"use 5.008;" is preferred form; "use v5.8.0" might yield obscure error messages on perls < 5.6, which is not the desired result.