From: Eric Hodel Date: 2004-01-03T22:30:38-08:00 Subject: #@ and #$ (Was: Re: DRb question) --abYdCjSRCBwcb+dP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Shashank Date (sdate@everestkc.net) wrote: > Well, I can point you to some obvious typos (see line 15 in webrun.rb): >=20 > @proxy =3D DRbObject.new(nil, "druby://#@name:#@port") > Don't you want this to be: >=20 > @proxy =3D DRbObject.new(nil, "druby://#{@name}:#{@port}") #@varname and #$globalname get expanded to #{@varname} and #{$globalname}. #$0 is seen sometimes in usage messages like this: STDERR.puts "#$0: some usage message here about how to run this thing" I tend not to use them, because the {} tell me where interpolation begins/ends properly. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --abYdCjSRCBwcb+dP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/97MOMypVHHlsnwQRAmlEAJ0ZSpfilyRbxhztYhyUmKjOecFpWACg27NT lkE5FpjE21JSeN4dcd+dLbE= =nv0Z -----END PGP SIGNATURE----- --abYdCjSRCBwcb+dP--