Computer Hope

Internet & Networking => Web design => Topic started by: Jim Theisen on October 29, 2004, 06:43:49 AM

Title: set variables using contents of an array
Post by: Jim Theisen on October 29, 2004, 06:43:49 AM
I've parsed STDIN down to and array whose elements are "name=value" (looks like cgi because it is). I know how to do this in perl but want to do it in Linux. Here's what perl does:
$contents{$name} = ${value}
This sets the literal value in name as a variable containing the value value: i.e.; age=30 8)