develooper Front page | perl.perl5.porters | Postings from September 2017

"require" documentation

Thread Next
Hauke D
September 26, 2017 10:32
"require" documentation
Message ID:
Hi all,

My understanding of the source[1] is that "require" will give special 
handling to absolute filenames and filenames beginning with "./" or 
"../". While this is described in the "do" docs[2], I find the "require" 
docs[3] a little misleading as the "pseudocode" is shown to just search 
@INC, with no mention of the special cases anywhere. While they do refer 
to "do", I think it would be good to make that more specific and to add 
a sentence, maybe something roughly like

"C<require> will give special handling to absolute pathnames as well as 
those beginning with F<./> and F<../>, the same way that the 
L<C<do>-FILE|/do EXPR> mechanism does."


Thanks, Regards,
-- Hauke D

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