in reply to Reading sourcecode at parsing/compilation (CHECK) time?

You are clobbering $_. Put local($_); before your while() loop.

- tye        

Replies are listed 'Best First'.
Re^2: Reading sourcecode at parsing/compilation (CHECK) time? ($_)
by LanX (Saint) on Apr 04, 2010 at 10:51 UTC
    thanks, switching to a lexical loop variable solved the problem!

    Silly me... I don't know why I was expecting that a core module either treats $_ safely when calling foreign code or documents warnings about possible side effects...

    Cheers Rolf

    PS: maybe the author should take a look into PBP? (SCNR ;)