From: Holden Glova Date: 2002-01-17T15:40:36+09:00 Subject: Re: Hello! Array sub classing? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 17 Jan 2002 19:24, Markt wrote: > HarryO wrote: > > Can you be more specific as to what you mean by delimiter? Do you > > mean when you output an array as a string? > > Say I read in a line of text from a file. It's been exported as a tab > delimited file. > > So I want to 'see' the 'tabs' as ','s..... > > So actually I don't want to see them!!...>) > > Then be able to reference the remainder as items. > > Regs, Markt If you are reading in a string why not use String#split ? If I understand you correctly, something similar to below should do it. my_array = text.split(/\t/) Hope this helps you. - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8RnKR+mF116Lw2cQRArKuAJ0VzFWuLk7cadpgt8pLctw38tD6PwCdHVaa qSrLlYPgkGZqLz7RexuJcfQ= =UlXl -----END PGP SIGNATURE-----