Skip to content

Instantly share code, notes, and snippets.

@semifor
Created August 26, 2009 20:55
Show Gist options
  • Save semifor/175835 to your computer and use it in GitHub Desktop.
Save semifor/175835 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use Encode qw/encode_utf8/;
use Net::Twitter;
my $twitter = Net::Twitter->new(netrc=>1,legacy=>0);
eval {
#$twitter->update("日本語テスト1");
#$twitter->update({ status => "日本語テスト2" });
#$twitter->update("日本語テスト3");
#$twitter->update({ status => "日本語テスト4" });
#$twitter->update({ 'status' => "日本語テスト5" });
#$twitter->update({ encode_utf8('status') => "日本語テスト6" });
# after "fixing" Net::Twitter
# see: http://twitter.com/semifor_test
$twitter->update("日本語テスト7");
$twitter->update({ status => "日本語テスト8" });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment