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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP uses include - what is the Perl equivalent

Status
Not open for further replies.

jonster22

Programmer
Dec 29, 2002
3
GB
hello,

PHP can use Perl files and this is how I store the variables used to access a mysql db.

How can I do the same thing in Perl?

Regards
John
 
Well my friend MAWargod had a little bit of the same problem a couple days ago. The file ( created by a PHP user ), was in the format:
10568000003|December 25, 2002|1r1200085770|UPS Ground
00000000002|December 23, 2002|1z1234567890|UPS Ground

If you really wanted to save in PHP format (the divider could be anything), just
print INFILE
"$var1|$var2|$var3|$var4
$2var1|$2var2|$2var3|$2var4";

I'm not sure if thats what your asking, but if it is, well than there it is. Happieness is like peeing your pants.
Everyone can see it, but only you can feel the warmth.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top