$ 0 0 change: my @Id = $results->{eSearchResult}{IdList}{Id}{'@'};to: my @Id = $results->{eSearchResult}{IdList}{Id}('@');