Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Dynamically parse BibTeX and create hash of hash

by Anonymous Monk
on Dec 07, 2012 at 22:03 UTC ( #1007831=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Dynamically parse BibTeX and create hash of hash
in thread Dynamically parse BibTeX and create hash of hash

Something like this? (untested)

for my $bibkey (sort keys %bibliography) { my $entry = $bibliography{$bibkey}; print "$bibkey:\n"; for my $key (sort keys %$entry) { print "\t$key => ", $entry->{$key}, "\n"; } }

Alternatively, $Data::Dumper::Sortkeys = 1;


Comment on Re^3: 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://1007831]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2014-10-01 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (22 votes), past polls