Skip to content

Commit

Permalink
Implement |%args for interpolating a hash into named arguments to a s…
Browse files Browse the repository at this point in the history
…ub call.
  • Loading branch information
tene committed Apr 19, 2009
1 parent 80f0d32 commit 0dfcf49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/actions.pm
Expand Up @@ -2748,6 +2748,9 @@ method EXPR($/, $key) {
# Need to make it flatten the argument.
my $past := $( $/[0] );
$past.flat(1);
if $past<sigil> eq '%' {
$past.named(1);
}
make $past;
}
elsif ~$type eq 'infix://=' || ~$type eq 'infix:||=' || ~$type eq 'infix:&&=' {
Expand Down

0 comments on commit 0dfcf49

Please sign in to comment.