in reply to Re: Static Data ("__DATA__" vs. "our") (handles)
in thread Static Data ("__DATA__" vs. "our")

Another common problem I've seen with usage of __DATA__ in modules is using while(<DATA>) without localizing $_ (see while(<>) { ... } considered harmful why it is bad).

Update: Actually $_ should not be used in modules at all. See this bug report why.

Ilya Martynov,
Quality Perl Programming and Unix Support UK managed @ offshore prices -
Personal website -