Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hold constants between php and perl

Status
Not open for further replies.

pwebonline

Programmer
Oct 9, 2002
6
AR
Hi everyone, I am developing a project which includes php and perl. It would be nice if I could have some contants in one file and include it in all my files (php and perl).
In php:
include ("inc/library.xx");

and in perl:
require inc/library.xx

Is there anyway to do this?
 
Sounds like a standard configuration file to me.
It's very popular to create a file with two columns, key and value, and then have a subroutine that parses that data file and reads it into a hash.

--jim
 
Sounds good... How would it be? I am kinda new in this... I would appreciated you helped me out with an example or something... Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top