#--------------------------------------------------------------------- package GetParams; # # (c) 2000 Microsoft Corporation. All rights reserved. # # Version: 1.00 (01-14-2000) : Basic function implement # 1.01 (01-17-2000) : Use -tag to define the function # 1.02 (02-01-2000) : Fix $self problem => Complete Object Oriented # 1.03 (05-02-2000) : Provide -? and -x:xxx parameters & fix path value problem # 1.04 (05-04-2000) : Provide getparams, getparamsEnv function & remove $class #--------------------------------------------------------------------- $VERSION = '1.04'; require 5.003; use Getopt::Std; use strict; no strict 'vars'; no strict 'subs'; require Exporter; @ISA = qw(Exporter); sub new { my ($class)=shift; my $self = {@_}; $class = ref($class) || $class; # The keys of 'self' are # # -n : see Usage # -o