[ale] Converting C data structures to Perl
John Wells
jb at sourceillustrated.com
Mon Apr 21 21:42:10 EDT 2003
Chris,
I think it'd look about like:
@master = (
{
ipaddress => '127.0.0.1',
device1 => { name => 'somename',
pass => 'somepass'},
device2 => { name => 'somename',
pass => 'somepass'}
},
{
ipaddress => '255.255.255.255',
device1 => ( name => 'somename',
pass => 'somepass'),
device2 => ( name => 'somename',
pass => 'somepass')
}
);
to test, print $master[0]{device1}{name}, etc...
John
Chris Fowler said:
> master array ---
> |--> unit
> -> IP Address
> -> device
> |-> name
> |-> pass
> -> device
> |-> name
> |-> pass
> |-> unit
> -> IP address
> -> device
> |-> name
> |-> pass
>
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list