Not a bad idea ... but why not just write a Perl script that
downloads your home node, parses out your current experience
and sends you a /msg. How about one that keeps track of
new additions to Saints in our Book and /msg's them with
a congradulation. Remember, this is Perl Monks -
we can make our own bells and whistles for the site. ;)
Update:
Here is some code to get you going ... check out
Personal Nodelet Extractor for some example code to log you in and post
a message ... oh, and you might want to utilize an
HTML Parser instead of using that fragile regex.
use strict;
use warnings;
use LWP::Simple;
my $node = shift or die 'gimme a node #';
my $html = get("http://www.perlmonks.org/index.pl?node_id=$node");
my ($exp) = $html =~ m{<td>Experience:</td>\s+<td><b>(\d+)};
my %level = (
initiate => 0,
novice => 20,
acolyte => 50,
scribe => 100,
monk => 200,
friar => 500,
abbot => 1000,
bishop => 1600,
pontiff => 2300,
saint => 3000,
);
print "You made Monk!!!\n" if $exp >= $level{monk};
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|