From: Jason Voegele Date: 2003-01-14T21:40:33+09:00 Subject: Re: String literals ts wrote: >>>>>>"R" == Radek Hnilica writes: >>>>> > > R> but the last one, multiline, is there only in "" (expanding) variant. > R> Is there unexpanding ('') variant of the multiline string literal. > > Something like this ? (see '' around EOF) > > pigeon% cat b.rb > #!/usr/bin/ruby > $a = 12 > var = <<'EOF' > variable #$a > EOF > p var > pigeon% Or even: % cat strings.rb $a = 12 var = ' variable #$a Ruby Strings are multi-line by default. ' p var % ruby strings.rb "\nvariable #$a\nRuby Strings are multi-line by default.\n" -- Jason Voegele "We believe that we invent symbols. The truth is that they invent us." -- Gene Wolfe, The Book of the New Sun