Skip to content

Commit

Permalink
fix unset's arg handling.
Browse files Browse the repository at this point in the history
t/cmd_global.t now runs to completion.
  • Loading branch information
coke committed Dec 15, 2009
1 parent 71f4a01 commit 5c9d4dd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Partcl/commands/main.pm
Expand Up @@ -456,11 +456,13 @@ our sub time(*@args) {
return $ms_per ~ ' microseconds per iteration';
}

our sub unset($varname) {
Q:PIR {
$P1 = find_lex '$varname'
$P2 = find_dynamic_lex '%LEXPAD'
delete $P2[$P1]
our sub unset(*@args) {
for @args -> $varname {
Q:PIR {
$P1 = find_lex '$varname'
$P2 = find_dynamic_lex '%LEXPAD'
delete $P2[$P1]
}
}
}
Expand Down

0 comments on commit 5c9d4dd

Please sign in to comment.