2013-06-22から1日間の記事一覧
何故か["あ".."お"]すると[qw(あ い う え お)]と同じようになると思い込んでいましたが、そうではないみたいです。 use strict; use warnings; use utf8; print "ぁ".."お", "\n"; print map { chr } ord("ぁ")..ord("お"); __END__ ...(警告は省略)... ぁ …
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)…
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…