パルカワ2

最近はFlutterをやっています

2013-06-22から1日間の記事一覧

"ぁ".."お"は動かない

何故か["あ".."お"]すると[qw(あ い う え お)]と同じようになると思い込んでいましたが、そうではないみたいです。 use strict; use warnings; use utf8; print "ぁ".."お", "\n"; print map { chr } ord("ぁ")..ord("お"); __END__ ...(警告は省略)... ぁ …

Data::Dummyっていうの作った。

tokuhiromさんにコメントで指摘されて、たしかに!と思ったので、そっちを作ってみました。 use strict; use warnings; use utf8; use Data::Dummy; use Data::Dumper; my %hash = ( id => dummy_int([1..100]), name => dummy_str(["あ".."ん"], size => 5)…

Hash::Dummyっていうの作った。

use strict; use warnings; use utf8; use Data::Dumper; use Hash::Dummy qw(create_dummy_hash); my %hash = create_dummy_hash( id => { type => "Int", array => [1..150], }, name => { type => "Str", size => 15, array => ["あ".."ん", "a".."z", "A…