diff --git a/.mailmap b/.mailmap index f24dc6b8540a..52e54652eaca 100644 --- a/.mailmap +++ b/.mailmap @@ -232,6 +232,7 @@ Dagfinn Ilmari Mannsåker Dagfinn Ilmari Mannsåker (via RT) Dagfinn Ilmari Mannsåker ilmari@vesla.ilmari.org Damian Conway Damian Conway Dan Book Dan +Dan Book Grinnz Dan Dascalescu Dan Dascalescu Dan Faigin Dan Faigin, Doug Landauer Dan Jacobson Dan Jacobson diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 5baf11db7635..50bb6377c7e6 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -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"; @@ -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 calls on the same file or with the 'module_true' feature enabled. +To run a file and retrieve its return value, use L|/do EXPR>. + If EXPR is a bareword, C 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