1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-10 16:54:33 +02:00

Merge pull request #804 from weaselp/master

Fix a comment that indicates what "say @array" will print.
This commit is contained in:
Nami-Doc
2014-10-12 23:14:21 +02:00

View File

@@ -64,7 +64,7 @@ say "Interpolate an array using [] : @array[]";
my @keys = 0, 2;
@array[@keys] = @letters; # Assign using an array
say @array; #=> a 2 b
say @array; #=> a 6 b
# There are two more kinds of lists: Parcel and Arrays.
# Parcels are immutable lists (you can't modify a list that's not assigned).