From: Ken Bloom Date: 2009-03-17T00:37:37+09:00 Subject: Re: `&' interpreted as argument prefix On Mon, 16 Mar 2009 03:16:57 -0500, Heesob Park wrote: > 2009/3/16 Phlip : >> Arun Kumar wrote: >>> >>> Hi, >>> I'm new to rubi and at present i'm trying to write a sample code for >>> html extraction and store it in the database. The following is the >>> code for that : >>> >>> doc = Hpricot(open("http://www.google.com/")) >> >> The offending line is: >> >>      ele.instance_variable_set("@#{k}", v) >> > Well, I don't think so. > > The offending line is: > ele.instance_eval &blk > > If you modify it to > ele.instance_eval(&blk) > The warning is gone. > > Regards, > > Park Heesob Looks fixed if you get Hpricot version 0.6.211 or later. http://github.com/why/hpricot/commit/ aa2b51651bee9b3770bc2ecb8f1886b47aee8584 -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/