Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.)


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2016-10-21 16:48 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.