-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 MikeGee wrote: > Michael W. Ryder wrote: >> Is there any reason I cannot embed tabs in a string while using irb? I >> am trying to create a string using tabs to separate the various values >> for testing -- i.e. a = '1 2 3 4'. Using irb it either ignores the tab >> character or places a random value in the string. >> On a related note why is the value for the above string '1' if I use >> a.to_i to display it? I would have expected an error. > > > a = "1\t2\t3\t4" > > > Actually, I tried this and it gives a string literal back =>"1\t2\t3\t4" This occurs as well if inserted into a full ruby script (not just irb). Lincoln Anderson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFtV92R8wmeqHdtdcRAmyKAKCyTBb0pVFSCqGVD61LJjCRhg25ZwCdHH5O ZTL//ymQ5UxGL+uP/gGfypQ= =tdLS -----END PGP SIGNATURE-----