Hi all, I'm trying to get this string (example):
$all_codes = '4c1 4- 4c2 4- 8b1 8g1'; in to an array (@codes), using it's whitespace as the delimiter. ie. @codes = split(/ /,$all_codes); but I keep getting extra whitespace elements picked up into the array...: '4c1,4-,4c2,4-, ,8b1,8g1' which is not good for the rest of the program. I can't seem to get tr/// or s/// to work on it (the way I'm trying to use them). $all_codes =~ tr/' +'/ /; doesn't affect the string at all. Any ideas? cheers, -Shannon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]