[GRLUG] Some perl help

Ben Rousch brousch at gmail.com
Sat Jul 2 21:17:16 EDT 2011


On Sat, Jul 2, 2011 at 4:35 PM, Adam Tauno Williams
<awilliam at whitemice.org>wrote:
>
> String splitting is an evil and wrong way to read a delimited record;
> doing so will fail in a fantastic variety of ways.   I'm not a Perl
> developer but I'm certain Perl must provide a standard module for
> reading delimited data sets.  In Python this would be the "csv" module -
> which allows you to specify field delimiter, line terminator, and field
> quoting style.   Don't forget that text files also have encoding - one
> cannot assume text data is ASCII (especially if a user can get anywhere
> near it using cut-n-paste).   If it isn't straight-ASCII your string
> splitting will fail in mysterious cases that on visual inspection look
> fine.
>
> --
> Adam Tauno Williams
>

+1

-- 
 Ben Rousch
   brousch at gmail.com
   http://clusterbleep.net/

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shinobu.grlug.org/pipermail/grlug/attachments/20110702/98588198/attachment.html>


More information about the grlug mailing list