On 14.10.2011 09:20, Magnus Holm wrote:
right.

This will probably never work, though: [http://pastie.org/2693243]

– Matthias

Woah, I never realized that __END__ was valid on its own line inside a
heredoc/string…

and it’s valid within a multiline comment, too:

=begin
…
__END__
…
=end

and this, again, is valid within a heredoc. Try:

a = <<FIN
bla
=begin
ble
__END__
bli
=end
blo
FIN

All this regex .gsub! stuff breaks badly considering strings/files that require 
parsing instead.

– Matthias
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to