Skip to content

Commit

Permalink
add args handling to [append]
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Nov 29, 2009
1 parent db66abf commit 3b259e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/PmTcl/Commands.pm
@@ -1,5 +1,11 @@

our sub append($var, *@args) {
our sub append(*@args) {
if +@args < 1 {
error('wrong # args: should be "append varName ?value value ...?"');
}

my $var := @args.shift;

my $lexpad := pir::find_dynamic_lex__Ps('%LEXPAD');

my $result := $lexpad{$var};
Expand Down

0 comments on commit 3b259e5

Please sign in to comment.