Changeset 40503 for trunk/psLib/utils/psParseErrorCodes
- Timestamp:
- Jul 6, 2018, 4:49:58 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/psLib/utils/psParseErrorCodes (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/utils/psParseErrorCodes
r23738 r40503 65 65 print "\nOutput File: $output\n" if $verbose; 66 66 while (<INFILE>) { 67 if (/\$ {ErrorCode}/ || /\${ErrorDescription}/ || /\${n}/) {67 if (/\$\{ErrorCode}/ || /\$\{ErrorDescription}/ || /\$\{n}/) { 68 68 $line = $_; 69 69 for ( $n = 0 ; $n < $found ; $n++ ) { 70 70 $_ = $line; 71 s/\$ {ErrorCode}/$ErrorCodes[$n]/g;72 s/\$ {ErrorDescription}/$ErrorDescriptions[$n]/g;73 s/\$ {n}/$n/g;71 s/\$\{ErrorCode}/$ErrorCodes[$n]/g; 72 s/\$\{ErrorDescription}/$ErrorDescriptions[$n]/g; 73 s/\$\{n}/$n/g; 74 74 print OUTFILE; 75 75 print if $verbose;
Note:
See TracChangeset
for help on using the changeset viewer.
