Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by choroba (Cardinal)
on Jan 13, 2017 at 16:00 UTC ( [id://1179526]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179526]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found