Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Entries from 2003-11-20 to 1 day

複雑なリファレンス

無名配列へのリファレンスを値として持つ無名ハッシュがあって(そのリファレンスをどこかに置いておいて)、その無名配列に値を push したいときー(実行例)。 $a = {hoge => []}; push(@{$a->{hoge}}, "piyo"); print $a->{hoge}->[0], "\n"; push のとこ…