go ahead... be a heretic | |
PerlMonks |
Re: Introduction to anonymous arrays and hashesby Prior Nacre V (Hermit) |
on Nov 06, 2004 at 10:19 UTC ( [id://405739]=note: print w/replies, xml ) | Need Help?? |
I'm assuming this is related to a markup language such as HTML or XML. I'm unsure whether you are using the data to create a document or if you are extracing the data from a document. If one of these, I would suggest you use one of the HTML:: or XML:: modules on CPAN. There may be others with which I'm unfamiliar; XML::LibXML is the only one that I have a reasonable working knowledge of. In terms of how you might use anonymous arrays and hashes, behind the <readmore> is a script which creates a data structure to represent the following HTML fragment (and prints the content of the <em> element).
Note: This code is for illustrative purposes only - I am not suggesting you include it in an application.
This has probably raised further questions. Ask away. Regards, PN5
In Section
Seekers of Perl Wisdom
|
|