Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-10-16 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?