Think about Loose Coupling | |
PerlMonks |
Re: Show count before data outputby Tomte (Priest) |
on Jun 23, 2003 at 12:46 UTC ( [id://268135]=note: print w/replies, xml ) | Need Help?? |
Since you are printing the data inside of the while-loop, it's printed before the count-value. You told the programm to do. should do it. Note that I modified your loop, but provided a more proper solution below it. Since you are reading in html-files, I wonder if some CPAN-Module might be of interest to you.
regards, Update:Modified the code to slurp the file in. Update II:fixed the CPAN-link. Hlade's Law:
If you have a difficult task, give it to a lazy person --
In Section
Seekers of Perl Wisdom
|
|