in reply to Re: perl to convert text list of ip address to a name
in thread perl to convert text list of ip address to a name

Why get rid of commas?
  • Comment on Re: Re: perl to convert text list of ip address to a name

Replies are listed 'Best First'.
Re: Re: Re: perl to convert text list of ip address to a name
by Anonymous Monk on May 17, 2004 at 23:57 UTC
    They asked for a Comma Separated List. The author just took the quick route of removing commas to make a "clean" name. You could also find if there is a comma in the name and enclose the complete name in double quotes.
      That is what I wanted to verify before pointing out that you also need to "zap" returns as ". Alternately you just encode your CSV properly and you don't have to mangle any data.