2011年9月6日火曜日

perlのハッシュ備忘録

メモ



  • 重複キーは上書きされる



基本形


[perl]
#!/usr/bin/perl

use strict;
use warnings;
use utf8;

#キーは文字列、値はスカラー
my %sample_hash = (
'hoge01' => 11,
'hoge02' => 12,
'hoge03' => 13,
);

#値の追加
$sample_hash{'hoge04'} = 14;

#値の削除
delete $sample_hash{'hoge01'};

#値の取り出し
foreach my $i (keys(%sample_hash)){
print $i.":".$sample_hash{$i}."\n";
}


[/perl]

以下書きかけ…

ハッシュスライス


多次元ハッシュエミュレーション

2011年8月28日日曜日

word press設置してみたよ

使い方よくわかんないけどね><
とりあえずデフォルトテンプレートというやる気のない俺。

2011年8月22日月曜日

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!