Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
So I'm in my webtech class and rather than listening to the lecture on XML I thought I'd write a Perl script to poll CNN and find out who was ahead and by how much.

Sample output would be "Bush beating Gore by 1750 votes" or vice versa. I supposed there should be a "Bush and Gore tied" message just in case.

Your challenge write the code to do output those types of messages with the fewest characters in Perl

Additional points given for logging it to a permanent data source and e-mailing all the people in a comma-delimited list when the results shift. The list should be accessed from a file.

I'm feeling generous so the person who completes the most of these features in the fewest characters of Perl wins a free PM t-shirt courtesty of me. Deadline is 7:00pm November 7, EST. So you've got about two hours and forty minutes.

LWP and MAIL modules can be used or you can use lynx or connect directly to sendmail. The message text should just be the output of the program

Update: I mean November 8th... or maybe I'm just evil and really don't want to give anyone a free t-shirt

Update: today is not Thursday so the votes prolly won't be tallied until end of business hours on Thursday so the deadline will now be Nov. 9th at 2:00pm EST

Update: I should have decided on the winner by sometime on Monday

Update: I was torn between giving the prize to amelinda and chromatic so I think I'll send each of you one



vroom | Tim Vroom | vroom@cs.hope.edu

In reply to Post Election Day Perl by vroom

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others wandering the Monastery: (4)
    As of 2020-01-24 03:16 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Notices?