Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Caffeine and its delivery to monks in need

by newrisedesigns (Curate)
on Jun 20, 2002 at 03:24 UTC ( #175900=note: print w/ replies, xml ) Need Help??


in reply to Caffeine and its delivery to monks in need

half-tempted to make this work by prompting for a username and password...

#!/usr/bin/perl -w use strict; use LWP::Simple; my $url = 'http://perlmonks.org/index.pl?'; my @usernames; my $xml = get("${url}node_id=15851"); my @ret = split(/\n/, $xml); @ret = grep(/\A\<user/, @ret); foreach (@ret){ /username="([\w\d\ \$\.\%\@\-]*)"/; push(@usernames, $1); } foreach (@usernames){ s/\s/_/g; print $_; get("${url}op=message&message=/msg\%20$_\%20Here's+some+coffee.+Enjoy. +"); }

If anyone else wants to make it work... be my guest.

John J Reiser
newrisedesigns.com


Comment on Re: Caffeine and its delivery to monks in need
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://175900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-09-21 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls