Commit dafa511
committed
check for existence of sub naming subs before using them
Sub::Util ships with new versions of List::Util, but its subs are
provided by the XS component of List::Util. All Sub::Name itself does
is load List::Util to ensure the subs are available.
If List::Util is downgraded or the new version is otherwise unavailable,
Sub::Util will load fine but the subs won't be installed. We need to
make sure the actual subs exist before we try to use them.1 parent aebf7dc commit dafa511
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
0 commit comments