Problems? Is your data what you think it is? | |
PerlMonks |
Re: Remove duplicate from the same line..by rpnoble419 (Pilgrim) |
on Jun 01, 2013 at 15:14 UTC ( [id://1036457]=note: print w/replies, xml ) | Need Help?? |
Are you getting this duplication only on the Company Name line? If so, wrap the solution from Athanasius in an if test when you read the line from your file. Otherwise you can damage any address information as warned by Athanasius. Can you get a look at the system that is causing the problem in the first place? That might be your better long term solution..
In Section
Seekers of Perl Wisdom
|
|