develooper Front page | perl.perl5.porters | Postings from March 2003

Re: [doc patch] perlapi.pod's ref to Perl_load_module

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
March 4, 2003 13:17
Subject:
Re: [doc patch] perlapi.pod's ref to Perl_load_module
Message ID:
20030304221417.0cd5e221.rgarciasuarez@free.fr
Stas Bekman wrote:
> perlapi.pod advertises the load_module function, not Perl_load_module. Though 
> it refers to Perl_load_module the require_pv() section. Shouldn't it be always
> consistent and refer to load_module()?

For a reason unknown to me, this function is always called as Perl_load_module()
in the core. In this case I think the correct patch would be to document in the
L<load_module> section that the Perl_ prefix should always be used in the core.

> If so, please apply the following patch:

perlapi.pod is a generated file, so patches to the original file are preferred.

> --- perlapi.pod.orig    2003-03-01 15:26:33.000000000 +1100
> +++ perlapi.pod 2003-03-01 15:31:15.000000000 +1100
> @@ -687,7 +687,7 @@
> 
>   Tells Perl to C<require> the file named by the string argument.  It is
>   analogous to the Perl code C<eval "require '$file'">.  It's even
> -implemented that way; consider using Perl_load_module instead.
> +implemented that way; consider using load_module instead.
> 
>   NOTE: the perl_ form of this function is deprecated.

Thread Previous | Thread Next


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