in reply to Predefining complex data structures?
If you're just using simple nested hashes then XML::Simple may be just the module for you, and if you continue to get muddled by references and reference syntax check out the perlreftut and perlref manpages.my %tagstack; # ... parsing code here push @{$tagstack{requirements}}, { # $tag = wherever the data is coming from text => $tag{cdata}, attributes => $tag{attribs} };
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Predefining complex data structures?
by Ionizor (Pilgrim) on Jul 12, 2002 at 15:14 UTC |