in reply to read the value of variable from environment file and set it to another properties file using perl script

$envline =~/$DOMAIN_DB_CONN_STR=.*:1521:.*/ && $_=~/$DOMAIN_DB_CONN_ST +R=.*:1521:.*/){ # ~ ~

Do you use strict? What do you think the dollar signs mean in a regular expression when followed by letters?

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
  • Comment on Re: read the value of variable from environment file and set it to another properties file using perl script
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: read the value of variable from environment file and set it to another properties file using perl script
by vishallearningperl (Initiate) on Jan 13, 2017 at 16:05 UTC

    Hi I have not used strict. I used $DOMAIN ans I have different values for $DOMAIN and I am using same regex for them. e.g. FINANCE_DB_CONN_STR, MARKETING_DB_CONN_STR

        Thanks I will go through