Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Hash Table genaration using perl

by veerubiji (Sexton)
on Sep 30, 2011 at 15:30 UTC ( #928838=note: print w/replies, xml ) Need Help??


in reply to Re: Hash Table genaration using perl
in thread Hash Table genaration using perl

I am trying like this, i am reading xml and i am extracting but i dnt know how to extract each test description and sotre it in a string. Each test description starts with data number like <data> then how to extract each description and store it in a string.I am beginer to perl.

Replies are listed 'Best First'.
Re^3: Hash Table genaration using perl
by blue_cowdawg (Monsignor) on Sep 30, 2011 at 17:28 UTC

    Take a look at XML::Simple for reading in the XML. It'll work better than greedy regexes.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

      give any idea regarding store data into string and hash table creation . it helps alot for me.

      Hi, i tried with xml::simple i posted my code above but I want my ouput like test number and their description below. like

      testnumber 0437 <description> testnumber 0438 <description>.....
      description is in xml format

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928838]
help
Chatterbox?
[Tux]: None work for me. My dead key is AltGr (right Alt)
[Tux]: And I just tested, neither do other Tk apps :) (95% of my Tk Apps is either just monitoring (no input) or input of just numbers). Something to investigate then
[choroba]: Maybe something like this?
[choroba]: I vaguely remember we had problems with dead keys in Tk at $work - 2, but I forgot all the details
[choroba]: but it was worse on MSWin than on Linux
[choroba]: (and OSX didn't exist yet)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-09-25 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (290 votes). Check out past polls.

    Notices?