다음 해시 배열의 크기를 어떻게 구합니까? Perl에서 해시 배열의 크기를 찾으십시오.
나는이 그것을 할 것이라고 생각하지만, 그것은 작동하지 않았다
...print Dumper scalar $item->{'detail'};
$VAR1 = [
{ 'content' => undef, 'name' => 'entree', 'url_name' => 'entree' },
{ 'content' => undef, 'name' => 'dessert', 'url_name' => 'desert' },
{ 'content' => undef, 'name' => 'drink', 'url_name' => 'drink' }
];
또는 내가 크기를 모른 채 해시의 배열의 모든 url_name
(앙트레, 사막, 음료)를 인쇄 할 수있는 방법 ?
어느 라인이 있습니까? – perreal
내 실수 ... 그게 완벽하게 작동, 몇 시간을 구해줘. – mamesaye