On Sep 11, 2005, at 2:03 PM, Ara.T.Howard wrote:

>> I have a code generation problem, and this looks to address my  
>> requirements
>> very well.
>>
>
> careful - if you go the
>
>
>>>>>     "puts \"#{line.chomp}\"\n"
>>>>>
>
> route an errant '#{' or '`' in your input will cause a syntax  
> error.  the
> orginal method of
>
>   "puts "#{ line.chomp.dump }\n"
>
> will always work though.

Except that '#{' or '`' will be escaped and ignored. Still, point  
taken. Maybe a 'be_careful' option? But as I said in a previous post,  
a 'be_safe' option isn't really possible. Now, I've not used Ruby in  
a while, maybe I'm missing something.

Cheers,
Bob

>
> cheers.
>
> -a
> -- 
> ====================================================================== 
> =========
> | email :: ara [dot] t [dot] howard [at] noaa [dot] gov
> | phone :: 303.497.6469
> | Your life dwells amoung the causes of death
> | Like a lamp standing in a strong breeze.  --Nagarjuna
> ====================================================================== 
> =========
>
>
>

----
Bob Hutchison          -- blogs at <http://www.recursive.ca/hutch/>
Recursive Design Inc.  -- <http://www.recursive.ca/>
Raconteur              -- <http://www.raconteur.info/>