Help for this page

Select Code to Download


  1. or download this
    sub printUsage {
        my ($mandatory, $optional) = @_;
    ...
        print "[-$_ ", uc $_, "]" for @$optional;
        print $/;
    }
    
  2. or download this
    my @mandatory = qw(user to_db to_sid to_site);
    my @optional  = qw(password vendor type model);
    ...
        unless $rc;
    printUsage(\@mandatory, \@optional, \@default)
        if grep !exists $args->{$_}, @mandatory;