[TriLUG] Perl and the M-= (1/2) character

Andrew Perrin clists at perrin.socsci.unc.edu
Mon Mar 12 12:19:43 EDT 2007


Sorry if my perl is too rusty, but....

I'm using perl to process some data files, which include addresses that 
sometimes have a 1/2 symbol in them. The symbol appears to be M-= (i.e., 
that's what cat -t shows, and when I hit alt-= that's what I get on the 
screen).  However, my perl script is barfing on the symbols; the problem 
appears to be with the Text_CSV::XS module, which fails to parse any line 
containing the character. Any thoughts?

Andy


----------------------------------------------------------------------
Andrew J Perrin - andrew_perrin (at) unc.edu - http://perrin.socsci.unc.edu
Assistant Professor of Sociology; Book Review Editor, _Social Forces_
University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA
New Book: http://www.press.uchicago.edu/cgi-bin/hfs.cgi/00/178592.ctl





More information about the TriLUG mailing list