Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - perl6 - fix $^O variable more
  • Loading branch information
fglock committed Oct 3, 2013
1 parent eae6843 commit 0d6f509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perlito5.pl
Expand Up @@ -12522,7 +12522,7 @@ package Perlito5::AST::Apply;
};
if (($code eq 'prefix:<$>')) {
my $arg = $self->{'arguments'}->[0];
return '$?VM' if ($arg->isa('Perlito5::AST::Val::Buf') && ($arg->{'buf'} eq chr(15)));
return '$*OS' if ($arg->isa('Perlito5::AST::Val::Buf') && ($arg->{'buf'} eq chr(15)));
return ('$(' . $arg->emit_perl6() . ')')
};
if (($code eq 'prefix:<@>')) {
Expand Down
2 changes: 1 addition & 1 deletion src5/lib/Perlito5/Perl6/Emitter.pm
Expand Up @@ -447,7 +447,7 @@ package Perlito5::AST::Apply;
if ( $code eq 'prefix:<$>' ) {
my $arg = $self->{arguments}->[0];

return '$?VM' if $arg->isa('Perlito5::AST::Val::Buf') && $arg->{buf} eq chr(15); # $^O
return '$*OS' if $arg->isa('Perlito5::AST::Val::Buf') && $arg->{buf} eq chr(15); # $^O

return '$(' . $arg->emit_perl6 . ')';
}
Expand Down

0 comments on commit 0d6f509

Please sign in to comment.