Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Use @a.push form instead of pir::push
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Aug 25, 2010
1 parent c7b2af5 commit e71d569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/setting/Regex.pm
Expand Up @@ -72,12 +72,12 @@ our sub split ($regex, $text) {
my $from := $match.from();
my $to := $match.to();
my $prefix := pir::substr__sPii($text, $pos, $from-$pos);
pir::push__vPP(@result, $prefix);
@result.push($prefix);
$pos := $match.to();
} else {
my $len := pir::length($text);
if $pos < $len {
pir::push__vPP(@result, pir::substr__ssi($text, $pos) );
@result.push(pir::substr__ssi($text, $pos) );
}
$looking := 0;
}
Expand Down
2 changes: 1 addition & 1 deletion t/setting/04-regex.t
Expand Up @@ -6,6 +6,6 @@ plan(2);

my @a := split(/\d/, 'a23b5d');
ok(+@a == 4, 'split produced 4 chunks');
ok((pir::join__SSP('!',@a) eq 'a!!b!d'), 'got right chunks');
ok((@a.join('!') eq 'a!!b!d'), 'got right chunks');

# vim: ft=perl6

0 comments on commit e71d569

Please sign in to comment.