Skip to content

Commit b2e7ebf

Browse files
committed
explicit mention what [] and Array.new do
1 parent 44f2b0b commit b2e7ebf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/containers.pod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ The following examples all do the same, and do not flatten:
210210
211211
say @b.perl; # Array.new([1, 2, 3], 4, 5);
212212
213+
C<[...]> creates an itemized array, and C<Array.new(...)> a non-itemized
214+
array.
215+
213216
There is a slight exception though: if you call a method on an itemized
214217
container, it will generally behave as if it weren't itemized. So
215218
C<[1, 2, 3].join(',')> produces C<"1,2,3"> as a result, as one might hope.

0 commit comments

Comments
 (0)