Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create capture with \() instead of just \
  • Loading branch information
lizmat committed Jul 5, 2015
1 parent 999cf98 commit b07b9a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S02-types/lists.t
Expand Up @@ -131,10 +131,10 @@ plan 32;
#?niecza skip 'Cannot use value like Capture as a number'
{
my @array = (1,2,3);
my $capture = \@array;
my $capture = \(@array);

is +$capture, 1, '\@array creates a capture (1)';
is +$capture[0], 3, '\@array creates a capture (2)';
is +$capture, 1, '\(@array) creates a capture (1)';
is +$capture[0], 3, '\(@array) creates a capture (2)';
}

{
Expand Down

0 comments on commit b07b9a8

Please sign in to comment.