I am parsing a massive file line by line and cleaning it up. It has about 15 fields, all separated by | and I want to remove the white space from before and after the pipes so that as the information is parsed it gets rid of external white spaces from the string and such.
Some fields are numbers, others are strings, and a couple are arrays. sample: 1|AA-1202 |12in. X10.75 FOIL SHEETS 12/200| 70.96 | 46.40 | 45.24 | 44.13 |246|3| 55.000 | .000 | .000 |A |AA-1202 2| AA-1205 |12in. x10in. FOIL POPUP SHEETS 6/500| 96.61 | 63.17 | 61.59 | 60.09 |246|3| 25.000 | 6.000 | .000 |B | AA-1205 TIA!! Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>