File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,6 @@ for full details on all operators.
567
567
568
568
Unchanged:
569
569
570
- = item C < , > List Separator
571
570
= item C < + > Numeric Addition
572
571
= item C < - > Numeric Subtraction
573
572
= item C < * > Numeric Multiplication
@@ -581,6 +580,18 @@ Unchanged:
581
580
= item C « == != < > <= >= » Numeric comparisons
582
581
= item C < eq ne lt gt le ge > String comparisons
583
582
583
+ = head2 C < , > (Comma) List Separator
584
+
585
+ Unchanged, but note that in order to flatten an array variable to a list (in
586
+ order to append or prefix more items) one should use the C < | > operator. E.g:
587
+
588
+ = for code
589
+ my @numbers = (100, 200, 300);
590
+ my @more_numbers = (500, 600, 700);
591
+ my @all_numbers = [|@numbers, 400, |@more_numbers];
592
+
593
+ That way one can concatenate arrays.
594
+
584
595
= head2 C « <=> cmp » Three-way comparisons
585
596
586
597
In Perl 5, these operators returned -1, 0, or 1.
You can’t perform that action at this time.
0 commit comments