#!/usr/bin/perl use strict; use warnings; use YAML::Tiny; use Net::Twitter; my $config = (YAML::Tiny->read('config.yml'))->[0]; my $twit = Net::Twitter->new(username => $config->{'username'}, password => $config->{'password'}); $twit->update('Perl から Twiitter を更新するテストですよー');