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

Re: Reading b/w tags

by mickeyn (Priest)
on Mar 21, 2006 at 07:46 UTC ( #538142=note: print w/ replies, xml ) Need Help??


in reply to Reading b/w tags

hi gzayzay,

try to replace your 'while' loop with this one:

while (<XFILE>) { chomp; print (LIST "$_","\n") if /\<(name|keywords|description|results)\>/ .. /\<\/$1\>/; }

Enjoy,
Mickey


Comment on Re: Reading b/w tags
Download Code
Replies are listed 'Best First'.
Re^2: Reading b/w tags
by Anonymous Monk on Mar 21, 2006 at 13:06 UTC
    Thanks a lot Mickey.

    Edman

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://538142]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (18)
As of 2015-07-30 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls