[Pikes-peak-pm] Perl Program

Rod Burgess rodbandkimb at msn.com
Sat Mar 31 17:50:55 PDT 2007


I have the following file with three data fields separated by a "; semicol"

14567345;1;Oil Seal
4533457C;1;Heat Shield
56842204;1;Misc Part
5481206D;1;Gasket
81003589I;1;Washer
T23546II;1;Shirt

The 1st Data Field is Part#
The 2nd Data Field is Number of Parts
The 3rd Data Field is Part Description

The only change that I need to this file is if the 1st data field being the 
part# ends in a "C,D,I, or II"
I would like the file to look like this (having a space between the part 
number an its Identifier.)
Is that possible with Perl? Could someone please show me a sample perl 
program to do this
Read File A and produce File B?

14567345;1;Oil Seal
4533457 C;1;Heat Shield
56842204;1;Misc Part
5481206 D;1;Gasket
81003589 I;1;Washer
T23546 II;1;Shirt




More information about the Pikes-peak-pm mailing list