Help for this page

Select Code to Download


  1. or download this
    $envfile="/root/env.properties"; 
    @envFile=<$env>;
    open my $env,  '<',  $envfile      or die "Can't read old file: $!";
    
  2. or download this
    open my $in,  '<',  $file      or die "Can't read old file: $!";
    open my $out, '>', "$file.new" or die "Can't write new file: $!";
    
  3. or download this
    
    
    ...
    foreach $envline (@envFile){
    
    while ( <$in> ){
    
  4. or download this
            print "$. $_";
            if($envline =~/$DOMAIN_DB_CONN_STR=.*:1521:.*/ && $_=~/$DOMAIN
    +_DB_CONN_STR=.*:1521:.*/){
    
  5. or download this
                    print "\nMatch";
                    $line=$_;
                    $line =~ s/$DOMAIN_DB_CONN_STR=.*:1521:.*/NUANCE_DB_CO
    +NN_STR=$dbhost:$dbport:$dbschema/;
    
  6. or download this
                    print $out $line;
            }
    }
    }
    
  7. or download this
    use strict;
    use warnings;
    ...
            }
        }
    }