Ruby Quiz wrote:

> That naturally leads to the question, can you build source filters in Ruby? 
> Clearly we can build ACME::Bleach, but not all source filters are as simple I'm
> afraid.  Consider this:
> 
> 	#!/usr/local/bin/ruby -w
> 
> 	require "fix_my_broken_syntax"
> 
> 	invalid++
> [...]
> Ruby never gets to loading the library, because it's not happy with the syntax
> of the first file.  That makes writing a source filter for anything that isn't
> valid Ruby syntax complicated and if it is valid Ruby syntax, you can probably
> just code it up in Ruby to begin with.

But note that if you do #!/usr/local/bin/ruby -w -r fix_my_broken_syntax 
you will be able to make it work.