From: Gareth Adams Date: 2006-09-07T02:52:42+09:00 Subject: Re: How to take output of eval into a string? Morton Goldberg ameritech.net> writes: > > On Sep 6, 2006, at 9:02 AM, Anil Wadghule wrote: > > > #code > > a = "puts 'I like Ruby'" > > b = eval(a) > > puts b > Exactly what are you trying to capture into a string? I would guess that the intention is to capture STDOUT and get b == 'I like Ruby'