Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Dynamically parse BibTeX and create hash of hash

by Athanasius (Abbot)
on Dec 07, 2012 at 14:32 UTC ( #1007750=note: print w/ replies, xml ) Need Help??


in reply to Dynamically parse BibTeX and create hash of hash

You are reading the details of a bibliographic entry into %article, and then storing a reference to this hash:

$bibliography{"$key"} = \%article;

So, when %article is subsequently cleared, the %bibliography entry now refers to an empty hash! Change that line to:

$bibliography{"$key"} = { %article };

which makes a copy of the hash, and the output will be what you are looking for.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


Comment on Re: Dynamically parse BibTeX and create hash of hash
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007750]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2015-07-06 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls