Skip to content

Commit 0b419bb

Browse files
committed
PPC0027: Put 'perl' language tag on verbatim code blocks
1 parent 02d208c commit 0b419bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ppcs/ppc0027-any-and-all.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Most code of any appreciable size tends to make use of at least the `any` or `al
2121

2222
New named features that, when enabled, activate syntax analogous to the existing `grep` operator, named `any` and `all`:
2323

24-
```
24+
```perl
2525
any { BLOCK } LIST
2626

2727
all { BLOCK } LIST
@@ -41,7 +41,7 @@ These operators only yield a single scalar; in list context therefore they will
4141

4242
For example:
4343

44-
```
44+
```perl
4545
Some::Class->new(
4646
option => (any { TEST } list, of, things),
4747
other => $parameter,
@@ -58,7 +58,7 @@ In the longer term, if these named features become part of a versioned feature b
5858

5959
## Examples
6060

61-
```
61+
```perl
6262
use v5.40;
6363
use feature 'any';
6464

@@ -75,7 +75,7 @@ The overall behaviour of these operators is primarily demonstrated by functions
7575

7676
The `List::Keywords` module also provides an interesting "named lexical" syntax to its operators, allowing the user to specify a lexical variable, rather than the global `$_`, to store each item for iteration:
7777

78-
```
78+
```perl
7979
use List::Keywords qw( any );
8080

8181
if( any my $item { we_want($item) } @items ) {
@@ -103,7 +103,7 @@ Supporting syntax analogous to the "deferred-expression" form of `grep EXPR, LIS
103103

104104
Using the `any` and `all` keywords to make junction-like behaviour. Such is already provided by other modules, for example [`Data::Checks`](https://metacpan.org/pod/Data::Checks) in a title-case form and thus would not collide with the all-lowercase keywords provided here. This is already possible:
105105

106-
```
106+
```perl
107107
use Data::Checks qw( Any ... );
108108
use Syntax::Operator::Is;
109109

0 commit comments

Comments
 (0)