Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (14 sloc) 0.488 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/usr/bin/perl

# Sneaky way to get more information in your tweets

use strict;
use warnings;
use utf8;

sub tweet_compress {
    my $tweet = shift;

    my @orig = ( qw/cc ms ns ps in ls fi fl ffl ffi iv ix vi oy ii xi nj/, '. ', ', ' );

    my @new = qw/㏄ ㎳ ㎱ ㎰ ㏌ ʪ fi fl ffl ffi ⅳ ⅸ ⅵ ѹ ⅱ ⅺ nj . ,/;

    $tweet =~ s/\Q$orig[$_]\E/$new[$_]/g for 0 .. $#orig;

    return $tweet;
}

binmode STDOUT, ':utf8';

print tweet_compress( join '', @ARGV ), "\n";
Something went wrong with that request. Please try again.