| 作者: Koichi Yamamoto | |
| 日時: 2004/4/17(00:10) |
こんにちは、山本です。 ""Bruce." <kbk@...>"さんは書きました: > %hash = (a => b, c=>d, e=>f); > $hareshre = \%hash; > print keys $hashref; > > とすると > > Type of arg 1 to keys must be hash (not scalar dereference) at hash.pl line 3, near "$hashref;" > Execution of hash.pl aborted due to compilation errors. %hash = (a => b, c=>d, e=>f); $hashref = \%hash; print keys %$hashref; ということですよね? -- Koichi Yamamoto, http://homepage3.nifty.com/yamakox/
番号順一覧Top
スレッド順一覧Top
367. Re: keys of anonymous hash [藤岡和夫] 2004/4/16(23:41)
369. Re: keys of anonymous hash [Bruce.] 2004/4/17(00:16)
365. keys of anonymous hash [Bruce.] 2004/4/16(22:09)
370. Re: keys of anonymous hash [Bruce.] 2004/4/17(00:21)