Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by tye (Cardinal)
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 Switch.pm?? 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!)
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?

    Cheers,
    Ovid

    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.

        Cheers,
        Ovid

        New address of my CGI Course.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://513521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-07-13 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (246 votes), past polls