in reply to Re^3: Reading sourcecode at parsing/compilation (CHECK) time? (Ticket)
in thread Reading sourcecode at parsing/compilation (CHECK) time?

I don't think the error is in the module; the error is that you shouldn't use that kind of while loop without localizing $_.

More examples are at http://wiki.perl-community.de/Wissensbasis/PerlFallen#Lesen_aus_Datei_und (in German, sorry).

  • Comment on Re^4: Reading sourcecode at parsing/compilation (CHECK) time? (Ticket)
  • Download Code

Replies are listed 'Best First'.
Re^5: Reading sourcecode at parsing/compilation (CHECK) time? (Ticket)
by LanX (Saint) on Apr 05, 2010 at 14:48 UTC
    I don't think the error is in the module;

    maybe "error" is too much to say, let's call it good style not to unnecessarily rely on that foreign code doesn't change $_.

    At least this module violates several style rules from the same author...

    Cheers Rolf