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

When Make New Level, Do...

by arrow (Friar)
on Dec 23, 2002 at 01:06 UTC ( #221787=monkdiscuss: print w/replies, xml ) Need Help??

I think that when a monk makes it to the next level, an automatic /msg to his/her mailbox should congratulate the monk on their success and either tell them about there new powers or give a link to it. I know that these articles already exist, but I just thought it would be more convenient for the monk, and that it would be a nice addition to <butt-kissing>this already great website</butt-kissing>.

Just Another Perl Wannabe

Replies are listed 'Best First'.
(jeffa) Re: When Make New Level, Do...
by jeffa (Bishop) on Dec 23, 2002 at 01:18 UTC
    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)
    
      Thanks jeffa, I'll try that...

      Just Another Perl Wannabe
Re: When Make New Level, Do...
by dws (Chancellor) on Dec 23, 2002 at 02:35 UTC
    I think that when a monk makes it to the next level, an automatic /msg to his/her mailbox should congratulate the monk on their success ...

    The real challenge is to contribute enough good stuff (either by posts, replies, or CB chatter) that people will notice that you've advanced a level, and will /msg congratulations without prompting.

Re: When Make New Level, Do...
by diotalevi (Canon) on Dec 23, 2002 at 01:47 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://221787]
Approved by Aristotle
help
Chatterbox?
[james28909]: Good morning!
[james28909]: I have a problem I am trying to solve. I am packaging scripts using pdk and would like the verify the executable name each time it is executed
[Corion]: Hi James!
[james28909]: I looked through the docs, and see that PerlApp::exe() is suppose to return this information but whenever i try to use this, i get the error "Undefined subroutine &PerlApp::exe called"
[james28909]: i just want to verify the integrity of the executables name each time it is run.
[Corion]: Weird. this documentation says what you say.
[Corion]: I assume you are experiencing this with your packaged program. Maybe also include PerlApp.pm in the packaging list?
[james28909]: has anyone else run into this problem? i have tried searching but have not returned many results

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2017-07-28 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (429 votes). Check out past polls.