|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: new to perlby zentara (Archbishop) |
| on Jul 13, 2012 at 15:12 UTC ( #981643=note: print w/ replies, xml ) | Need Help?? |
|
I don't know if anyone noticed, but in the sample file given, there was a space between the last word and the bracketed br in the first line, and no space in the second. I don't know if it was a typo, or if it was an intentional fine point. In any event, it screwed up the spilt on space to array, giving 1 extra element. There may be a clever regex to do this, but here is a simple way a beginner can understand.
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||