root/lang/perl/Encode-JP-Mobile/trunk/tools/yaml2perl.pl

Revision 5448, 299 bytes (checked in by tokuhirom, 9 months ago)

merge Encode::JP::Mobile::Character branch to trunk.

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl
2use strict;
3use warnings;
4use Data::Dumper;
5use YAML;
6use FindBin;
7use File::Spec::Functions;
8
9$Data::Dumper::Terse++;
10
11die "Usage: $0 hoge.yaml hoge.pl" unless @ARGV==2;
12my ($src, $dst) = @ARGV;
13
14open my $fh, '>', $dst or die $!;
15print $fh Dumper(YAML::LoadFile($src));
16close $fh;
17
Note: See TracBrowser for help on using the browser.