2010-02-01から1日間の記事一覧

perlの配列・ハッシュのリファレンス

#-------------------------------- #hash referance %hash = (a=>100,b=>200,c=>300); $ref_hash=\%hash; print $ref_hash->{a}."\n"; print ${$ref_hash}{b}."\n"; %hash2 = %{$ref_hash}; print $hash2{c}."\n"; #-------------------------------- #arra…