作者: 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/