From: dblack@... Date: 2003-02-06T22:28:54+09:00 Subject: Re: %, % revisited Hi -- On Thu, 6 Feb 2003, Dossy wrote: > On 2003.02.06, Mauricio Fern�ndez wrote: > > In Ruby <<-EOF means that EOF can be indented. > > Ah, so this is where Ruby's here-doc implementation deviates from the > shell ... okay. > > Perl, being Evil, gives you hackery like this: > > (my $x = < this is > a test > EOT > > Which roughly approximates the <<-word here-doc behavior of the shell, > which strips leading tabs off lines in the here-doc. > > I guess one could apply a similar regexp in Ruby as well ... But with a chance to show off how cool the non-need for /gm can be :-) irb(main):018:0> str = <