Skip to content

Instantly share code, notes, and snippets.

@kamipo
Created February 23, 2009 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamipo/69107 to your computer and use it in GitHub Desktop.
Save kamipo/69107 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use Encode qw(encode);
my $data = "~-あいうえお";
$data =~ tr/\x{ff5e}\x{ff0d}/\x{301c}\x{2212}/;
my $encoded = encode 'euc-jp', $data;
my $file = 'wavedash.txt';
open my $fh, '>', $file or die $!;
print $fh $encoded;
close $fh;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment