GoCubs wrote:

Steve is correct, the score data now appears to be coming in on one
single line.  Hopefully that's the only change.  I believe one of the
other sports (NFL?) was similar so I'll have to refresh myself in how I
handled it.

I definitely recommend a simple regexp to add a newline before every tag you expect to see on a new line, e.g.:

$content =~ s#<div#\n<div#i

or whatever tag/tags are appropriate and that make it work. Basically a one-liner, then split the string as usual and iterate as usual.

Believe it or not, SuperDateTime was my first Perl programming attempt
and I didn't expect it to become the monster it has.

Ladies and gentlemen, the history of computer programming in one sentence. ;-)

Had I known I probably would have organized it differently and
explored HTML::Parser. Right now I'm comfortable with how everything
works and luckily so far the HTML source hasn't changed that
much/often.

Absolutely. What I should be doing is recoding that MLB subroutine to use HTML::Parser and then offering it to you for review/approval. I'll look into it when I have a bit of time. It's a very useful module, but it does take a bit of playing with to really get a gut feel for. Had you started with it rather than ad-hoc parsing, you might not have gotten as far as you have, especially given this is the first perl programming you've done.

I'll look into the code and post a fix when I can.

Thanks, and good luck with your move.

SBB








Visit our website at http://www.ubs.com

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to