in reply to Re^2: Print elements of hash references
in thread Print elements of hash references

where did $An get declared?

Well, I don't really understand the code fragment you posted but, maybe

 print $An->{id}[0];

Try using Data::Dumper to see the contents of $An