Help for this page

Select Code to Download


  1. or download this
    next if /^\s*[#*]/; # comments start with # or *
  2. or download this
    $curroption = $1 if s/^([A-Z]+) //;
  3. or download this
    # at top of program
    my @options = qw/on except some more options/;
    my $opt_string = join '|', @options;
    ...
    
    # instead of your line
    $curroption = $1 if s/$opt_pattern//;
    
  4. or download this
    push @{$options{$curroption}}, split(/,\s*/);
  5. or download this
    while (my ($option, $val_ref) = each %options) {
        print "$option -- ", join (',',@$val_ref), "\n";
    }