in reply to List packages in a file

Hashes (and by extension symbol table) have no order

Replies are listed 'Best First'.
Re^2: List packages in a file
by mellery (Initiate) on Feb 08, 2010 at 23:20 UTC
    yes - I'm aware of this. That's why I'm looking for another way to get the same information without using the symbol table - maybe something like a parse tree of the current source or something like that. I can just grep through the source file myself (looking for package declarations), but I'd rather not do that if there is already a standard package that provides the information I need. Thanks.
      PPI would be a better way of "grepping through the source file".
        PPI looks promising - thanks for the suggestion.