B
Ben B
All
I need to build something to store data. In its original form the
data looks like this --
Title File Level Content
---------------------------------------------------------------
"Home" "index.htm" 4 "Home Page"
"News" "news.htm" 1 "Welcome to the news"
"Contact" "id.htm" 3 "Contact me at..."
I have trawled Google and can't find the right structure for this data
-- a Hash, an Array, a List of Lists or so on -- I do know that Perl
does not have a true multi-dimensional array. I need to be able to
reference the line by the Title.
I am happy capturing each data element and dealing with it by chopping
up lines and elements, but what should I use to store this data, and
then reference it?
Any help appreciated -- I'd like an explanation, and suggestions,
rather than someone coding this for me out of the goodness of their
heart.
Regards
Ben
I need to build something to store data. In its original form the
data looks like this --
Title File Level Content
---------------------------------------------------------------
"Home" "index.htm" 4 "Home Page"
"News" "news.htm" 1 "Welcome to the news"
"Contact" "id.htm" 3 "Contact me at..."
I have trawled Google and can't find the right structure for this data
-- a Hash, an Array, a List of Lists or so on -- I do know that Perl
does not have a true multi-dimensional array. I need to be able to
reference the line by the Title.
I am happy capturing each data element and dealing with it by chopping
up lines and elements, but what should I use to store this data, and
then reference it?
Any help appreciated -- I'd like an explanation, and suggestions,
rather than someone coding this for me out of the goodness of their
heart.
Regards
Ben