On Nov 5, 2010, at 5:00 PM, Misha Ognev wrote:

> Hello.
>=20
> I need to get a value from array.
>=20
> For example:
>=20
> h=3D[1234567,987654] # =3D> 2 elements in array
>=20
> I need to get a 3 to 6 digit from first element # =3D> 3456

h[0].to_s[2,4]

> How i can do this?
>=20
> --=20
> Posted via http://www.ruby-forum.com/.
>=20