in reply to Re: Hashrefs and arrayrefs
in thread Hashrefs and arrayrefs

push(@tmplt_list, {%info}); . What does the extra set of braces around %info accomplish?

They create a reference to an anonymous hash, that in this case consists of the same elements as the %info hash. In other words: it copies %info to a hash without a name, and returns a reference to it.

Would you want to reference the original %info (which is more efficient but not always what you want), you would use:

push @tmplt_list, \%info;

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.