Changeset 1240


Ignore:
Timestamp:
2000-06-26T14:29:35+12:00 (24 years ago)
Author:
gwp
Message:

Resolved conflicts between previous two versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/parsargv.pm

    r1239 r1240  
    7272    my %option;
    7373
    74 <<<<<<< parsargv.pm
    7574    my @rest = @_;
    7675
     
    9392    while (($spec, $var) = splice(@rest, 0, 2))
    9493        {
    95 =======
    96     # if the last argument is the string "allow_extra_options" then options
    97     # in \@_ without a corresponding SPEC will be ignored (i.e. the "$arg is
    98     # not a valid option" error won't occur)\n";
    99     my $allow_extra_options = pop @_;
    100     if (defined ($allow_extra_options)) {
    101     if ($allow_extra_options eq "allow_extra_options") {
    102         $allow_extra_options = 1;
    103     } else {
    104         # put it back where we got it
    105         push (@_, $allow_extra_options);
    106         $allow_extra_options = 0;
    107     }
    108     } else {
    109     $allow_extra_options = 0;
    110     }
    111 
    112     while (($spec, $var) = splice(@_, 0, 2))
    113     {
    114 >>>>>>> 1.3
    11594    die "Variable for $spec is not a valid type."
    11695        unless ref($var) eq 'SCALAR' || ref($var) eq 'ARRAY';
Note: See TracChangeset for help on using the changeset viewer.