source:
lab.git/twitter/twitbot.pl
@
d200f4d
| Last change on this file since d200f4d was d200f4d, checked in by mitty <mitty@…>, 15 years ago | |
|---|---|
|
|
| File size: 307 bytes | |
| Line | |
|---|---|
| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | use strict; |
| 4 | use warnings; |
| 5 | use YAML::Tiny; |
| 6 | use Net::Twitter; |
| 7 | |
| 8 | my $config = (YAML::Tiny->read('config.yml'))->[0]; |
| 9 | my $twit = Net::Twitter->new(username => $config->{'username'}, password => $config->{'password'}); |
| 10 | |
| 11 | $twit->update('Perl から Twiitter を更新するテストですよー'); |
Note: See TracBrowser
for help on using the repository browser.
