Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Searching BiBTeX

by Abigail-II (Bishop)
on Jul 22, 2002 at 16:32 UTC ( [id://184115]=note: print w/replies, xml ) Need Help??


in reply to Searching BiBTeX

If each entry is just like this, that is, terminated with \n}\n, you could just set $/ to \n}\n, read in the records one by one and print if there's a match.

If the BiBTeX file is a bit more of a mess, you will have to parse the file. Text::Balanced might help you, or Parse::RecDescent, depending on how exactly the file looks like.

Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found