ハッシュのキー表示
今度はそのハッシュの中のkeyを取得する
my @keys_of_replies = keys( %{ @{$response}[0] } ); foreach my $key ( @keys_of_replies ){ print $key, "\n"; } print "\n";
@{$response}[0]は、最初のハッシュのリファレンスを指す。
返ってくる値は、
source
favorited
truncated
created_at
text
in_reply_to_user_id
user
id
in_reply_to_status_id
in_reply_to_screen_name
上記の10項目の値がハッシュの中には入っていることになる。