From: Brian Adkins Date: 2007-10-31T13:30:01+09:00 Subject: Re: Why, oh, why, little regexp? On Oct 30, 11:58 pm, Phrogz wrote: > On Oct 30, 9:30 pm, Daniel Waite wrote: > > > That's clever use of ?a, which I recognize but have never seen anyone > > use before. Thanks for the example! > > My current favorite use for the ?x syntax is converting single- > character strings representing digits into their integer form: Yeah, so you can squeeze Ruby code into small places :) 1.upto(?d){|i|i%3<1&&x=:Fizz;puts i%5<1?"#{x}Buzz":x||i}