in reply to Re^2: Parsing a file and finding the dependencies in it
in thread Parsing a file and finding the dependencies in it

It is a custom format.

I've heard that often, but I'll take your word for it :)

The problem is not parsing the file, but finding the dependencies as explained above. Thanks.

I hate to be contrary :) but yes, the problem is parsing.

First you build a data structure (parse), then you walk the data structure looking for dependencies.

If parsing wasn't a problem, surely you would have shared your parser, or at least, the data structure it creates?

Your response to Marshal's node Re: Parsing a file and finding the dependencies in it firmly confirms that parsing was indeed a problem.

  • Comment on Re^3: Parsing a file and finding the dependencies in it

Replies are listed 'Best First'.
Re^4: Parsing a file and finding the dependencies in it
by legendx (Acolyte) on Jul 06, 2011 at 15:31 UTC

    Yes, I agree it is a parsing issue and that I indeed was incorrect. I've been using Marshall's parser to check the dependencies but just need to get it to pull out the full value field as I noted in http://www.perlmonks.org/?node_id=912984