need help in perl template toolkit module.


 
Thread Tools Search this Thread
Top Forums Programming need help in perl template toolkit module.
# 1  
Old 10-27-2011
need help in perl template toolkit module.

Hi how can I read this information using template toolkit
Code:
     $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.

Last edited by veerubiji; 10-27-2011 at 01:04 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl SSH without a perl module

I'm trying to create a perl script that will do 1 SSH session, but be able to write multiple commands to the session and receive multiple outputs. I know there are modules out there like Net:SSH::Perl, but I'm not allowed to use it. I was thinking of doing something like an open3 on an ssh... (4 Replies)
Discussion started by: mrwatkin
4 Replies

2. Programming

Perl script to create latex template.

Hi, I have XML file and I extracted some tags and stored in hash, my data as look like this $var1={ 'stud.xml'={ '24'=>'<address> <streetname="xxxx"/> <housenum="138"/"> ... (9 Replies)
Discussion started by: veerubiji
9 Replies

3. Shell Programming and Scripting

calling perl subroutine from perl expect module

All, Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program. Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies

4. Shell Programming and Scripting

Which Perl Module to use?

Hi, I need to read an excel binary file and write the data to a text file. Is it possible using Spreadsheet-ParseExcel-0.58 ? If not, is there any module available in CPAN to do this? Thanks, Js (1 Reply)
Discussion started by: jisha
1 Replies

5. Infrastructure Monitoring

Zabbix Template and PERL Script for Monitoring Apache2

Hello, Kindly find attached a copy of the Zabbix template and PERL script we are using to monitor our Apache2 server. Here are the entries for zabbix_agentd.conf UserParameter=apache2.total_accesses,/etc/zabbix/zabbix_apache2.pl|cut -f1 -d":"... (4 Replies)
Discussion started by: Neo
4 Replies

6. Shell Programming and Scripting

Perl Module

Hi, Please help me!! Im wondering if anyone can help me with a problem i have with some perl modules. My problem is: I'm trying to connect remote host to a unix box from a windows machine. So i'm developing an application to do this. I'm programming it in perl with tcl/tk Gui interface.... (13 Replies)
Discussion started by: Phi01
13 Replies

7. Shell Programming and Scripting

Replace Perl Module name in all Perl scripts

I want to replace a Perl module name in all my Perl Scripts in the cgi-bin directory. How is it possible? I have the following statement in my scripts use myUtil; I want to change it to use myUtil777; Regards, Rahul (2 Replies)
Discussion started by: rahulrathod
2 Replies
Login or Register to Ask a Question