Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rakudo/rakudo
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed May 26, 2010
2 parents fd769c8 + 6f0e67d commit 20068fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Compiler.pir
Expand Up @@ -128,8 +128,6 @@ Perl6::Compiler - Perl6 compiler
env = root_new ['parrot';'Env']
$S0 = env['PERL6LIB']
$P0 = split ':', $S0
# append the current directory
push $P0, '.'
# append ~/.perl6/lib
$S0 = env['HOME']
if $S0 goto have_home # for users of unix-y systems
Expand All @@ -148,6 +146,8 @@ Perl6::Compiler - Perl6 compiler
concat $S0, $S1
concat $S0, '/languages/perl6/lib'
push $P0, $S0
# append the current directory
push $P0, '.' # remove this when 'use lib' works fine
# $P0 now has all the directories, move them to @*INC
$P1 = new ['Parcel']
# do not use '&circumfix:<[ ]>' because it makes a list of lists
Expand Down
2 changes: 1 addition & 1 deletion src/core/Cool-str.pm
Expand Up @@ -209,7 +209,7 @@ augment class Cool {
my $i = 1;
my @r = gather while my $m = Regex::Cursor.parse(self, :rule($pat), |%opts) {
my $m-copy = $m;
unless $nth.defined && ($i !~~ any |$nth) {
if !$nth.defined || ($i ~~ any |$nth) {
take $m-copy;
$taken++;
}
Expand Down

0 comments on commit 20068fa

Please sign in to comment.