Skip to content
Open
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 <[email protected]> Dagfinn Ilmari Mannsåker (via RT)
Dagfinn Ilmari Mannsåker <[email protected]> [email protected] <[email protected]>
Damian Conway <[email protected]> Damian Conway <[email protected]>
Dan Book <[email protected]> Dan <[email protected]>
Dan Book <[email protected]> Grinnz <[email protected]>
Dan Dascalescu <[email protected]> Dan Dascalescu <[email protected]>
Dan Faigin <unknown> Dan Faigin, Doug Landauer <unknown@longtimeago>
Dan Jacobson <[email protected]> Dan Jacobson <[email protected]>
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