in reply to XML::Twig - src code working but executable not working

It shows errors like

use of uninitiated value in pattern and also use of uninitiated value in scalar assignment.

You didn't actually paste in the exact messages -- you should have. But your inexact quotations are "close enough" that I can see they are warnings rather than errors.

So you get some output? And the output you get seems ok? Are you missing some output that was expected? If you don't get all the output that you expect, then it would be important to show us what the last error message was -- because that last one is probably a real error (not just a warning).

I'm with GrandFather: show us enough sample data to demonstrate how the output is incomplete (in addition to generating the warning messages that you mentioned). Don't forget to make it clear what the intended output should be.

  • Comment on Re: XML::Twig - src code working but executable not working

Replies are listed 'Best First'.
Re^2: XML::Twig - src code working but executable not working
by aakikce (Acolyte) on Jun 19, 2007 at 04:59 UTC

    Hello Monks,

    Thanks for your reply. My input and outputs are as:

    Inuput:

    <chapter head>Part &#8211; International</chapter head> <outline text>Meanings attached</outline text> <outline text>The complex nature of international employee recognition + and reward</outline text> <outline text>Strategic issues</outline text> <body text>The design and maintenance of an organisation's employee re +ward system represents &#8216;a critical.</body text> <body text>The claim begs the question.</body text> <a head>DEFINING 'EMPLOYEE REWARD'</a head> <body text>Located in a transnational include:</body text> <bullet list>relations between the strategic aims set by corporate man +agement for the multinational</bullet list> <bullet list>an appraisal of the relationship between corporate polici +es and practices for determining rewards dependent on the job, the pe +rson, and the performance of employees across a variety of locations, + segmented by geography or occupational category or other material fa +ctor</bullet list> <bullet list>an account of the 'human capital' perspective &#8211; the + implied or express needs and priorities of individuals and groups en +gaged to work for the organisation.</bullet list> <b head>Continuities and differences</b head> <body text>So, what is the same and what is different about internatio +nal reward and recognition strategy.</body text>

    Output from script:

    <chapter> <title>Part &#8211;International</title> <outline-box> <para>Meaningsattached</para> <para>The complex nature of international employee recognition and +reward</para> <para>Strategicissues</para> </outline-box> <para>The design and maintenance of an organisation's employee rewar +d system represents &#8216;acritical.</para> <para>The claim begs thequestion.</para> <section> <title>DEFINING 'EMPLOYEEREWARD'</title> <para>Located in a transnationalinclude:</para> <list type="bullet"> <item> <para>relations between the strategic aims set by corporate ma +nagement for themultinational</para> </item> <item> <para>an appraisal of the relationship between corporate polic +ies and practices for determining rewards dependent on the job, the p +erson, and the performance of employees across a variety of locations +, segmented by geography or occupational category or other materialfa +ctor</para> </item> <item> <para>an account of the 'human capital' perspective &#8211; th +e implied or express needs and priorities of individuals and groups e +ngaged to work for theorganisation.</para> </item> </list> <sub-section> <title>Continuities anddifferences</title> <para>So, what is the same and what is different about internati +onal reward and recognitionstrategy.</para> </sub-section> </section> </chapter>

    output from exe:

    <chapter> <title>Part &#8211;International</title> <para>Meaningsattached</para> <para>The complex nature of international employee recognition andre +ward</para> <para>Strategicissues</para> <para>The design and maintenance of an organisation's employee rewar +d system represents &#8216;acritical.</para> <para>The claim begs thequestion.</para> <section> <title>DEFINING 'EMPLOYEEREWARD'</title> <para>Located in a transnationalinclude:</para> <bulletlist>relations between the strategic aims set by corporate +management for themultinational</bulletlist> <bulletlist>an appraisal of the relationship between corporate pol +icies and practices for determining rewards dependent on the job, the + person, and the performance of employees across a variety of locatio +ns, segmented by geography or occupational category or other material +factor</bulletlist> <bulletlist>an account of the 'human capital' perspective &#8211; +the implied or express needs and priorities of individuals and groups + engaged to work for theorganisation.</bulletlist> <sub-section> <title>Continuities anddifferences</title> <para>So, what is the same and what is different about internati +onal reward and recognitionstrategy.</para> </sub-section> </section> </chapter>

    Please look in to the bullet list section

    thanks

    Aakikce

      In case the problem comes from some weird interaction between get_xpath and perlapp, try replacing all the calls to get_xpath( '//foo') by descendants( 'foo') (same with findnodes that you used at one point).

        Hello Monks,

        I used PDK 6.0.2.Now I get the correct exe

        Thanks for your replies.

        Aakikce