in reply to Re: Concatenating scripts intelligently
in thread Concatenating scripts intelligently

Yes, I think that does exactly what I want! Thanks for really diving into it!

I actually want it to output something like

Global symbol "$y" requires explicit package name in onAwaken snippet at somefile.xml line 42.
...but that requires external information (the file, line of each attribute) that I didn't mention before, and it's a straightforward addition to your script.
  • Comment on Re^2: Concatenating scripts intelligently

Replies are listed 'Best First'.
Re^3: Concatenating scripts intelligently
by ikegami (Patriarch) on May 10, 2006 at 01:02 UTC

    I figured you'd want something like that. You'll probably want to handle warnings too. local $SIG{__WARN__} will help you do that.

    An improvement I see is to optimize the line count to only count from the point where last count left off.