Help for this page

Select Code to Download


  1. or download this
     time    # with no args, command means "show time"
     time arg [...]   # with args, it means "set time"
    
  2. or download this
    while (<STDIN>) {
        my ( $cmd, @args ) = split;
    ...
            $command{default}->();
        }
    }
    
  3. or download this
    my %command = (
        time => sub {
    ...
          },
    #  ... and so on (updated to remove undeclared array)
    );