10
10
## Abstract
11
11
12
12
This RFC proposes a feature which, when used, causes the current Perl file to
13
- to yield a true value when C< require >d , eliminating the need for a "1" (or
13
+ to yield a true value when ` require ` , eliminating the need for a "1" (or
14
14
other true value) at the end of the file.
15
15
16
16
## Motivation
@@ -29,14 +29,14 @@ side-effect.
29
29
30
30
use feature 'module_true';
31
31
32
- B< Note > : the feature name is not settled, C< yield_true>, C< module_true> , and
33
- C< module_is_true> have all been suggested.
32
+ ** Note** : the feature name is not settled, ` yield_true ` , ` module_true ` , and
33
+ ` module_is_true ` have all been suggested.
34
34
35
35
Code using the above does not need to end in a true value when required.
36
36
37
37
If the module explicitly returns a false value, module loading will fail as it
38
38
does now. If the module author wants the module to fail to load under certain
39
- conditions, they should use C< die > or a similar mechanism with an appropriate
39
+ conditions, they should use ` die ` or a similar mechanism with an appropriate
40
40
error message rather than returning false.
41
41
42
42
## Backwards Compatibility
@@ -67,7 +67,9 @@ when `use v5.XX;` is used.
67
67
It's been discussed that we should return the package name instead. This
68
68
supports:
69
69
70
- my $obj = (require Some::Object::Class)->new;
70
+ ``` perl
71
+ my $obj = (require Some::Object::Class)-> new;
72
+ ```
71
73
72
74
However, per haarg:
73
75
0 commit comments