Text::LTSV
å¢ã㧠Text::LTSV ã¨ãã perl ã¢ã¸ã¥ã¼ã«ãæ¸ãããã©ããã tab ã split ãã¦ã³ãã³ã§ split ããã ããªã®ã§ãããããããªé§ã¢ã¸ã¥ã¼ã«ã使ãã¾ã§ããªããã¨ãã・・・ã
use Text::LTSV; my $hash = Text::LTSV->parse_line("hoge:foo\tbar:baz\n"); is $hash->{hoge}, 'foo'; is $hash->{bar}, 'baz'; my $data = Text::LTSV->parse_file('./t/test.ltsv'); # or parse_file_utf8 is $data->[0]->{hoge}, 'foo'; is $data->[0]->{bar}, 'baz'; my $ltsv = Text::LTSV->new( hoge => 'foo', bar => 'baz', ); is $ltsv->to_s, "hoge:foo\tbar:baz";
åçã¯ãã¦ããªãã