|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: A Question on a homebrew XML parserby wog (Curate) |
| on Jan 23, 2002 at 06:22 UTC ( #140788=note: print w/ replies, xml ) | Need Help?? |
|
The loop is exiting because of your test: The character 0 is false, and thus fails this test. You probably should use something like:
(If you were using <$fh> to read from the file this would not be a problem even if you read 0 only because perl special cases that to have an implict defined() around it.)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||