Changeset 8740 for trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm
- Timestamp:
- Sep 5, 2006, 3:53:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Config/lib/PS/IPP/Metadata/Stats.pm
r8739 r8740 1 1 # Copyright (c) 2006 Paul Price, Joshua Hoblitt 2 2 # 3 # $Id: Stats.pm,v 1. 6 2006-09-06 01:47:38jhoblitt Exp $3 # $Id: Stats.pm,v 1.7 2006-09-06 01:53:49 jhoblitt Exp $ 4 4 5 5 package PS::IPP::Metadata::Stats; … … 58 58 my $self = shift; # Where we'll put the information 59 59 my $md = shift; # Parsed metadata, from PS::IPP::Metadata::Config 60 61 # count of parse errors 62 my $errors = 0; 60 63 61 64 # Descend the FPA hierarchy … … 109 112 if (not defined $self->{data}->{$constant}->{value}) { 110 113 carp "Unable to find value for ", $constant, "\n"; 114 $errors++; 111 115 } 112 116 } … … 121 125 if (scalar @$array == 0) { 122 126 carp "Unable to find any values for ", $variable, "\n"; 127 $errors++; 123 128 next; 124 129 } … … 150 155 } 151 156 157 if ($errors) { 158 carp "a total of $errors parse errors occured"; 159 return; 160 } 161 152 162 return $self; 153 163 }
Note:
See TracChangeset
for help on using the changeset viewer.
