Skip to content

Commit

Permalink
Simple version of after(); t/cmd_after.t passes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Nov 29, 2009
1 parent 2bff6f8 commit 1e4db42
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/PmTcl/Commands.pm
@@ -1,3 +1,10 @@
our sub after(*@args) {
if +@args < 1 {
error('wrong # args: should be "after option ?arg arg ...?"')
}
pir::sleep__vN(+@args[0] / 1000);
'';
}

our sub append(*@args) {
if +@args < 1 {
Expand Down

0 comments on commit 1e4db42

Please sign in to comment.