Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I wrote a this morning trying to read b/w xml tags. However, i am having a little problem. The specified tags I want to read is been picked up but the content of the tag is not been read. Can any monk kindly help me solve this problem?
Thanksif (open(DBASE, $path."database.txt")) { while(<DBASE>) { chomp; if ($_ =~ /\.xml/) { if (open(XFILE, $_)) { while (<XFILE>) { chomp; if ($_ =~ /\<name\>|\<\/name\>/) { print (LIST "$_\n"); } } } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading B/w Tags
by planetscape (Chancellor) on Mar 13, 2006 at 16:08 UTC | |
|
Re: Reading B/w Tags
by CountOrlok (Friar) on Mar 13, 2006 at 16:06 UTC |