->text() can write only text.
You need to convert your data to text before you can write it.
So, now maybe it's a good time to look at the first program to see whether/how you can atually get text from your data structure.
Data::Dumper is a good way to inspect data structures.
Update: Fixed missing markup spotted by Athanasius
In reply to Re^5: How can I print hash content to pdf file ?
by Corion
in thread How can I print hash content to pdf file ?
by vkk05
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |