From: SUGIHARA Hiroshi (SuHi or SugHimsi) Date: 2000-09-17T19:33:48+09:00 Subject: [ruby-talk:4958] Re: Ruby Book Eng. translation editor's questions SugHimsi. This note is only in its detail. Jon Babcock wrote: | Ruby Book, Ch2, 2.14 (snip) | %Q!Hello "World"\n! # an alternative to "..." ~~~~~~~~~~~~~~~~~ # second form of "..." <=== and so forth. | # (no need to escape the quote marks) | | %|Hello "World"\n # the "Q" can be omitted ~~~ %|Hello "World"\n| # the "Q" can be omitted | # (an arbitrary character can be used for seperation) ~~~ # (an arbitrary character can be used for separation) | | %q{Hello World} # an alternative to '...' | # (ends at the matching }) ~~~ # (ends at the matching parenthesis, this case }) (snip) | [[When a string expression begins with % the type of expression is | determined by the next character.]] [[When a string expression begins with %, the next character determines the type of the expression.]] (snip) | Next Character Type of String | | Q, or it may be omitted Double quotes "..." ~~~~~~~~~~~~~~~~~~ Q, or omitted Double quotes "..." regards, -- SugHimsi (SUGIHARA Hiroshi) manamist@white.diamond.ne.jp