Re: compare and replace each line with Hash

2012-11-18 Thread Jim Gibson
On Nov 15, 2012, at 7:30 PM, Mohan L wrote: > Dear All, > > The below is my input data: > > $ cat demo.txt > 159350,PP02,Backup,0,Done > 159349,B02_bkp,Backup,0,Done > 159347,B02_bkp,Backup,0,Done > 159346,B02_bkp,Backup,0,Done > 159345,B02_bkp,Backup,0,Not > 159344,02_bkp,Backup,0,Done > > I

compare and replace each line with Hash

2012-11-15 Thread Mohan L
Dear All, The below is my input data: $ cat demo.txt 159350,PP02,Backup,0,Done 159349,B02_bkp,Backup,0,Done 159347,B02_bkp,Backup,0,Done 159346,B02_bkp,Backup,0,Done 159345,B02_bkp,Backup,0,Not 159344,02_bkp,Backup,0,Done I am using Text::CSV_XS to read the above comma separated file. Here is th