From: Tom Sawyer Date: 2003-01-16T13:19:13+09:00 Subject: Re: ruby-dev summary 19198-19345 On Tuesday 14 January 2003 12:40 pm, Tom Sawyer wrote: > then again wouldn't something like this be simpler: > > p <<| foo > | bar > > puts p > > and that's it, such that the string is completed by the fact that there is > no /^\s*\|/ match on the 3rd line. just thinking aloud here. as you can see, i'm right with Dave on this. another vote +1. as for all the here document functionality that Hal pointed out, as he says himself, he dosen't use it. and i doubt anyone does. it's simply too confusing. but GIVE ME THE ABOVE AND IT WILL BE ALL I USE! currently i generally just use %Q{...} instead of here docs. p %Q{ foo bar } which makes me think of this possibility: p %| foo | bar -- tom sawyer, aka transami transami@transami.net .''. .''. . *''* :_\/_: . :_\/_: _\(/_ .:.*_\/_* : /\ : .'.:.'. .''.: /\ : ./)\ ':'* /\ * : '..'. -=:o:=- :_\/_:'.:::. | ' *''* * '.\'/.' _\(/_'.':'.' : /\ : ::::: = *_\/_* -= o =- /)\ ' * '..' ':::' === * /\ * .'/.\'. '._____ * | *..* : |. |' .---"| * | _ .--'| || | _| | * | .-'| __ | | | || | .-----. | |' | || | | | | | || | ___' ' /"\ | '-."". '-' '-.' '` |_. ------------------------------------------------------------