Sir Nobu [mailto:nobu.nokada@softhome.net]:
#this one combines use (since you may or may not use indenter)
s1 = <<|EOS
>================================
> #{hi}
> I have to indent this line
> And also this list line
> to make it look good
>================================
#{verylongstring} whose length I do not know/care
Lots of lines
follow here
and here… blahblah blah
I don’t mind… works all the time
EOSIs this possible?
What possiblity? Yes for implementation, but I’m not sure
about the possiblity of adoption.
sorry. Yes, I only meant implementation.
Thank you.
I thought concatenated 2 literals, but noticed here-doc
wasn’t allowed after here-doc. This sample works as you
expected but looks strange a bit.s1 = <<-EOS "
>================================
> #{hi}
> I have to indent this line
> And also this list line
> to make it look good
>================================
EOS
#{verylongstring} whose length I do not know/care
Lots of lines
follow here
and here… blahblah blah
I don’t mind… works all the time
"
Yes, you are right (as always). I see danger in dangling/orphan ‘"’. Can I
override quote(")?
Nobu Nakada
kind regards -botp