Hi, I'm taking in a csv file and splitting it. One of the fields(doc) could possibly have six spaces which will disrupt the program later on so I need to substitute in dummy values. $doc == " " finds the "empty" fields okay but the substitution doesn't work. Clear as Mud?? Any ideas? open (FILEHANDLE,$file); while (<FILEHANDLE>){ chomp; ($type,$doc,$narrative,$amount,$bdate,$branch) = split(/,/); if ($doc == " "){ doc =~ s/ /111111/; _____________________________________________ Mark Martin Computer Centre National University of Ireland Maynooth Tel: (01)708 4716/3830 Fax: (01)628 6249
- substitution problem prachi shroff
- Re: substitution problem J. J. Horner
- Re: substitution problem Me
- Re: substitution problem Jeff Pinyan
- Re: substitution problem Me
- Re: substitution problem Brett W. McCoy
- Re: substitution problem prachi shroff
- Re: Substitution Problem Mark Martin
- Re: Substitution Problem Carl Rogers
- RE: Substitution Problem Dave Newton
- RE: Substitution Problem Wagner-David
- Re: Substitution Problem M.W. Koskamp
- substitution problem Steve Massey
- RE: substitution problem Steve Massey
- Re: substitution problem Gary Stainburn
- RE: substitution problem Mark Anderson
- Re: substitution problem R. Joseph Newton
- Re: substitution problem John W. Krahn