Home / Internet & Networking / Web design / set variables using contents of an array
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: set variables using contents of an array  (Read 1692 times)
Jim Theisen
Guest
« 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)
IP logged
Pages: [1] - (Top) Print 
Home / Internet & Networking / Web design / set variables using contents of an array « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.104 seconds with 18 queries.