Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: file parsing - use Parse::Recdescent

by tphyahoo (Vicar)
on Jan 11, 2005 at 16:55 UTC ( #421329=note: print w/replies, xml ) Need Help??


in reply to Genbank file parsing

This might be overkill, but if regexes are feeling unwieldy or hard to maintain for your task, you might want to try it with a grammar and Parse::RecDescent.

I haven't used P::RD myself yet, but am learning it because it seems like it would come in handy in a variety of situations where regexes won't quite get the job done, or get the job done kludgily. Also, perl 6 "rules" (the new word for the concept formerly known as regex) are shaping up to be sort of an amalgamation of regexes and formal grammar, with the formal grammar aspect closely related to the way grammar parsing works in P::RD. (Damian Conway, who did P::RD is also in charge of Perl 6 rules.)

thomas.

  • Comment on Re: file parsing - use Parse::Recdescent

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://421329]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-12-02 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (50 votes). Check out past polls.