Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Dagfinn Ilmari Mannsåker (via RT)
Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> ilmari@vesla.ilmari.org <ilmari@vesla.ilmari.org>
Damian Conway <damian@conway.org> Damian Conway <damian@cs.monash.edu.au>
Dan Book <grinnz@grinnz.com> Dan <grinnz@grinnz.com>
Dan Book <grinnz@grinnz.com> Grinnz <grinnz@grinnz.com>
Dan Dascalescu <bigbang7@gmail.com> Dan Dascalescu <ddascalescu+github@gmail.com>
Dan Faigin <unknown> Dan Faigin, Doug Landauer <unknown@longtimeago>
Dan Jacobson <jidanni@jidanni.org> Dan Jacobson <jidanni@hoffa.dreamhost.com>
Expand Down
6 changes: 6 additions & 0 deletions pod/perlfunc.pod
Original file line number Diff line number Diff line change
Expand Up @@ -7111,6 +7111,7 @@ would have semantics similar to the following:
croak $@ ? "$@Compilation failed in require"
: "Can't locate $filename: $!\n";
}
return 1 if $feature_module_true_enabled_in_file;
if (!$result) {
delete $INC{$filename};
croak "$filename did not return true value";
Expand All @@ -7136,6 +7137,11 @@ affects the compilation unit within which the feature is used, and using
it before requiring a module will not change the behavior of existing
modules that do not themselves also use it.

In this usage, the (truthy) result of the required file will be returned,
but this should not be relied upon as it will not be returned in subsequent
C<require> calls on the same file or with the 'module_true' feature enabled.
To run a file and retrieve its return value, use L<C<do>|/do EXPR>.

If EXPR is a bareword, C<require> assumes a F<.pm>
extension and replaces C<::> with C</> in the filename for you,
to make it easy to load standard modules. This form of loading of
Expand Down
Loading