source-filter

Is there a Perl solution for lazy lists this side of Perl 6?

Has anybody found a good solution for lazily-evaluated lists in Perl? I've tried a number of ways to turn something like for my $item ( map { ... } @list ) { } into a lazy evaluation--by tie-ing @list, for example. I'm trying to avoid breaking down and writing a source filter to do it, because they mess with your ability to debug t...

What concerns should I have if I use Smart::Comments in development code?

I understand that Smart::Comments should not be used in production code, since it is a source filter. However, I have been using Smart::Comments in my development code and then commenting out the "use" line before sending the code to production. Given that I'm going to use it in my development code, what I should specifically be conce...

Why are Perl source filters bad and when is it OK to use them?

It is "common knowledge" that source filters are bad and should not be used in production code. When answering a a similar, but more specific question I couldn't find any good references that explain clearly why filters are bad and when they can be safely used. I think now is time to create one. Why are source filters bad? When is it...