-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've got a string array, the first two lines of which may look like
0 3 34 0 1 3e-3 and I want to turn that into a numeric array. If that array is called a' , then 0".a returns |ill-formed number | ".a After a bit of testing, I realized that 0".a works as documented (among other things, it converts "-" to "_") _if_ the whitespace in the a array is made up of spaces. If part of the array is in the form of <number><tab><number> (e.g., the output from readcsv), those three elements (two numbers) will be chunked together and seen as one ill-formed number which gets converted into 0. While I can use detab to remove the tabs, is that behavior expected? Should tabs (in this case) behave as spaces? Is there a nice idiom I'm missing today? Thanks, Bill - -- Bill Harris http://facilitatedsystems.com/weblog/ Facilitated Systems Everett, WA 98208 USA http://facilitatedsystems.com/ phone: +1 425 337-5541 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: For more information, see http://www.gnupg.org iD8DBQFFGETz3J3HaQTDvd8RAkvFAJwNkwFOgtX75sY0NIIUx8Ijt5TIsgCfVQvk BXiUEzgMymNuQUaXbIBo+bQ= =tHkY -----END PGP SIGNATURE----- ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
