The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-10-2009
melanie_pfefer melanie_pfefer is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 234
string substitution in perl

Hi,

I have a template file and want to replace 3 parameters to the values that I want. these values are in a parameter file.

Any idea how to do this in perl?

the parameter file looks like:

host_name = jupiter
PORT = 1562
IPADDRESS = 10.1.34.10


the template file has lots of entry.


CX_HOST_NAME = host_name
CX_IPADDRESS = ip_address
CX__PORT = port

thanks.