This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[POD] `diagnostics.pm`: Remove indirect syntax
authorrwp0 <rwp.primary@gmail.com>
Fri, 29 Dec 2023 14:16:30 +0000 (15:16 +0100)
committerKarl Williamson <khw@cpan.org>
Sat, 30 Dec 2023 16:55:48 +0000 (09:55 -0700)
commit231534d747581d9bd50dab8aa56ca78f8433785f
tree6645afc73143b8245adc33a830b31b3b5183e0d0
parenta7597962a60c35a01758a96b3cda28f433648844
[POD] `diagnostics.pm`: Remove indirect syntax

Convert the below indirect syntax in documentation:

```
enable diagnostics;
disable diagnostics;
```

Since `enable` and `disable` are only methods

It's confusing to see barewords in the documentation.

As a user I thought `diagnostics` should actually be a string argument
to exported-by-default separate `enable` and `disable` subroutines.
lib/diagnostics.pm