IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 6, 2018, 4:49:58 PM (8 years ago)
Author:
eugene
Message:

modern perl requires protected brackets in regex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/utils/psParseErrorCodes

    r23738 r40503  
    6565    print "\nOutput File: $output\n" if $verbose;
    6666    while (<INFILE>) {
    67         if (/\${ErrorCode}/ || /\${ErrorDescription}/ || /\${n}/) {
     67        if (/\$\{ErrorCode}/ || /\$\{ErrorDescription}/ || /\$\{n}/) {
    6868            $line = $_;
    6969            for ( $n = 0 ; $n < $found ; $n++ ) {
    7070                $_ = $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;
    7474                print OUTFILE;
    7575                print if $verbose;
Note: See TracChangeset for help on using the changeset viewer.