Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Filter::Simple bug with here documents (duh!)

by tye (Sage)
on Dec 02, 2005 at 06:10 UTC ( #513521=note: print w/replies, xml ) Need Help??

in reply to Filter::Simple bug with here documents

Don't do that!

FILTER_ONLY will always have bugs. Just don't use it! It is really just that simple.

And the problem mysteriously goes away.

Yes. Didn't you learn anything from people's attempt to use Things mysteriously break (and mysteriously unbreak). Just STOP IT!

You actually can write reasonable source filters for Perl. You just need to avoid trying to not have your filter apply to quoted things (or other subsets of Perl syntax). So define your own way to escape things for places when the filter would be a pain. And define your custom syntax so you don't need to escape away from it much.

And never, never use FILTER_ONLY!

- tye        

  • Comment on Re: Filter::Simple bug with here documents (duh!)

Replies are listed 'Best First'.
Re^2: Filter::Simple bug with here documents (duh!)
by Ovid (Cardinal) on Dec 02, 2005 at 06:13 UTC

    Can you provide some context for these dire warnings?


    New address of my CGI Course.

      FILTER_ONLY tries to parse Perl code. Did you really not realize this or not realize that such is doomed and thus something quite foolish to include in production code?

      - tye        

        I knew this, but I was hoping that the Text::Balanced code it was dependent on was limited in scope enough to minimize the problem. I was wrong.


        New address of my CGI Course.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513521]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2018-06-22 21:38 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.