develooper Front page | perl.perl5.porters | Postings from February 2013

Re: [perl #116973] [PATCH] e465e1d perlfunc require: fix examplesubroutine

Thread Previous
From:
Christian Millour
Date:
February 28, 2013 02:34
Subject:
Re: [perl #116973] [PATCH] e465e1d perlfunc require: fix examplesubroutine
Message ID:
512EC22B.7010801@abtela.com
Le 28/02/2013 02:31, David Golden (via RT) a écrit :
> Things that are omitted:
>
> - The core parses for version numbers in a way that distinguishes
>    numbers from strings: C<< require 6 >> is not the same as
>    C<< require "6" >>. A pure perl require can't do that, so I
>    ignore that distinction and treat anything that looks like a version
>    as a version
>
> - There is no localization of %^H, as I'm led to believe this is
>    unnecessary since Perl 5.12

Also, CORE::require resets $! on success (see #116118, specifically 
http://www.nntp.perl.org/group/perl.perl5.porters/2012/12/msg197015.html), 
so the last lines should really read
          ...
          } else {
              $! = 0;
              return $result;
          }
and I won't even mention what it does to $^E on Win32.

As I have pleaded in #116118, I think this is bogus but I don't want to 
start again the discussion in this thread, just mentioned it for 
completion.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About