This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlfunc: update require() pseudocode
authorDavid Mitchell <davem@iabyn.com>
Tue, 5 Nov 2013 15:52:31 +0000 (15:52 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 5 Nov 2013 16:14:57 +0000 (16:14 +0000)
commit3b927101bf18bfcb197cacec8603d2b8297963ae
tree4eefa2214af8d396602a4412f323483c5ab59613
parentdc3e91f6d6ea441e8f6ea23d87efab6e7169142a
perlfunc: update require() pseudocode

RT #120292

The entry for require() in perlfunc has a perl function that's supposed to
illustrate how require works is rather out of date. In particular, the
fact that the search stops on EACCES wasn't incorporated, and the various
ways of it failing and reporting errors was inaccurate.

I also removed the explicit code for executing the 'do' in the caller's
package, and replaced it with just the comment 'but run in caller's
namespace', since the details were a bit obscure.

Finally, I re-indented it since it had strange 3-space indents
pod/perlfunc.pod