1.

Solve : set variables using contents of an array?

Answer»

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



Discussion

No Comment Found