Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - perl6 - fix $^O variable
  • Loading branch information
fglock committed Oct 3, 2013
1 parent b9edaad commit eae6843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions perlito5.pl
Expand Up @@ -12522,6 +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 ('$(' . $arg->emit_perl6() . ')')
};
if (($code eq 'prefix:<@>')) {
Expand Down
3 changes: 3 additions & 0 deletions src5/lib/Perlito5/Perl6/Emitter.pm
Expand Up @@ -446,6 +446,9 @@ 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 '$(' . $arg->emit_perl6 . ')';
}
if ( $code eq 'prefix:<@>' ) {
Expand Down

0 comments on commit eae6843

Please sign in to comment.