Hi how can I read this information using template toolkit
$var1= {
'STC'=>[
{
'gym'=>{
'hyd'=>{
'com'=>[
'dr'=>'1',
'typ'=>'z',
'bemo'=>{
'bm'=>'1',
'typ'=>'x',
'col'=>'red'
}
}
{
'dr'=>'12',
'typ'=>'a',
'bemo'=>{
'bm'=>'25',
'typ'=>'p',
'col'=>'red'
}
}
{
'dr'=>'23',
'typ'=>'k',
'bemo'=>{
'bm'=>'22',
'typ'=>'w',
'col'=>'blue'
}
}
{
'dr'=>'3',
'typ'=>'s',
'bemo'=>{
'bm'=>'9',
'typ'=>'B',
'col'=>'green'
}
}
}
}
]
};
I am not able to get this type of complex data , Remaining everything I solved and I am getting output as I want but this problem suffers me.please help me.
ok so you have some data, what do you expect it to look like? At the risk of sounding snarky, you could simply open in a text editor and print pdf or save as rtf. Clearly this isn’t what you mean.
You need to format the data somehow. Then the conversion will simply be the application of that your data to that format.
As I mention here, you could make a LaTeX template and fill it in with your data and
Template::Toolkitand compile using a LaTeX compiler. This would get you a PDF.N.B.
XML::Fasteven does surprisingly well against your poorly formatted XML 🙂