[Perl-unix-users] Converting ASCII to UTF-8

2006-01-24 Thread Carl Reynolds
I am receiving data for entry into a mysql database. The information comes to me in gzipped files and I'm using Compress::Zlib to uncompress the file in perl. I'm running perl 5.8.5. The information in the file is encoded in latin1. It is mostly ASCII 7-bit with HTML entities and some characte

Re: [Perl-unix-users] Converting ASCII to UTF-8

2006-01-24 Thread Carl Reynolds
Anthony Ettinger wrote: there must be a UTF-8 html entity module on cpan? Thanks. That got me thinking in the right direction. HTML::Entities will translate entities to Unicode. Unfortunately if all the values in the string passed to HTML::Entities are less than 256, the string returned by HT

[Perl-unix-users] Life of a variable in a module

2006-01-30 Thread Carl Reynolds
I have a module I've written, 'Tools.pm'. One of the function in Tools.pm will look up an identifier in a table in a database and return the value for the identifier. Since the table is rather short and to keep from having to access the disk all the time, I have the function store the values in a

Re: [Perl-unix-users] File Find

2006-02-23 Thread Carl Reynolds
Sharp, Craig wrote: I have a script that uses file::find to create a list of files within a subdirectory. Depending on the size of the directory, find can be very resource intensive. I need to find a better way to generate a list of files within a subdirectory for comparison to a time for de