From: Matt Mongeau Date: 2013-03-07T05:09:21+09:00 Subject: Re: Numbers and groups. --047d7b34387a429ba504d7472acf Content-Type: text/plain; charset=ISO-8859-1 Is there another language where you could do something like this? You can use a hash if you want something similar irb(main):019:0> my_hash = { 44523 => "andrew lee" } => {44523=>"andrew lee"} irb(main):020:0> my_hash[44523] => "andrew lee" On Wed, Mar 6, 2013 at 3:04 PM, Andrew l. wrote: > Hello everybody i am a new ruby user and i learn best by doing. so i am > trying to code what i would imagine to be a better tool tracjing system > for y work. right now i am trying to figure out how to get a number to > pull up a name. The various way's i have tried to do this is: > > 44523 = "andrew lee" > 44523.to_s. = "andrew lee" > 44523.to_s. {"arg1 = "andrew lee"} > > I would really like some help im sure this is a simply done but i cant > figure it out thanks for your help. > > -- > Posted via http://www.ruby-forum.com/. > > --047d7b34387a429ba504d7472acf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Is there another language where you could do something lik= e this?

You can use a hash if you want something s= imilar

irb(main):019:0> my_has= h =3D { 44523 =3D> "andrew lee" }
=3D> {44523=3D>"andrew lee"}
irb(main):020:0= > my_hash[44523]
=3D> "andrew lee"


On Wed, Ma= r 6, 2013 at 3:04 PM, Andrew l. <lists@ruby-forum.com> wr= ote:
Hello everybody i am a new ruby user and i l= earn best by doing. so i am
trying to code what i would imagine to be a better tool tracjing system
for y work. right now i am trying to figure out how to get a number to
pull up a name. The various way's i have tried to do this is:

44523 =3D "andrew lee"
44523.to_s. =3D "andrew lee"
44523.to_s. {"arg1 =3D "andrew lee"}

I would really like some help im sure this is a simply done but i cant
figure it out thanks for your help.

--
Posted via http://= www.ruby-forum.com/.


--047d7b34387a429ba504d7472acf--