Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - perl6 - special var
  • Loading branch information
fglock committed Oct 12, 2013
1 parent 66c192b commit a3e2348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perlito5.pl
Expand Up @@ -12380,6 +12380,8 @@ package Perlito5::AST::Var;
if $bareword eq '$';
return('$*PROGRAM_NAME')
if $bareword eq 0;
return('$!')
if $bareword eq '@';
return('$' . ($bareword - 1))
if $bareword >= 1
}
Expand Down
1 change: 1 addition & 0 deletions src5/lib/Perlito5/Perl6/Emitter.pm
Expand Up @@ -301,6 +301,7 @@ package Perlito5::AST::Var;
return '"\n"' if $bareword eq '/'; # XXX
return '$*PID' if $bareword eq '$';
return '$*PROGRAM_NAME' if $bareword eq '0';
return '$!' if $bareword eq '@';
return '$' . ($bareword - 1) if $bareword >= 1;
}

Expand Down

0 comments on commit a3e2348

Please sign in to comment.