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

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

Thread Previous
Christian Millour
February 28, 2013 02:34
Re: [perl #116973] [PATCH] e465e1d perlfunc require: fix examplesubroutine
Message ID:
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, 
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 

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About