background preloader

Perl

Facebook Twitter

Structure

Cgi. Regexp. Unicode-processing issues in Perl and how to cope with it (ahine. Perl 5.8+ has comprehensive support for Unicode and a wide range of different text encodings. But still many people experience problems when processing multi-language text. Here I explain the most common problems and offer solutions. 21 Nov 2013. Some inaccuracies in the text of the article and in the test scripts were corrected. This article is translated to Serbo-Croatian language by Anja Skrba from Webhostinggeeks.com.

An older version of this article is available. You can read this piece and dive into all the technical details and idiosyncrasies of perl and unicode. A bunch of perldoc manpages outline and explain the Perl’s unicode support. perluniintro, perlunicode, Encode module, binmode() function. I have experienced several kinds of trouble with Unicode in Perl, in several projects. UTF-8 data getting double-encoded or other-encoding data getting mangled the “Wide character in print” warning These two problems are closely related and often solved by similar moves. #!

Source #! Source #! The Perl Data Structures Cookbook. By Tom Christiansen< tchrist@perl.com > release 0.2 Sunday, 8 October 1995 This is a cookbook of recipes for building up complex data structures in perl. It has been extracted from a much larger and more expository document to be published in pod format and included with the standard perl distribution. The goal is to provide cookbook-like, cut-and-paste examples of the most often used data structures in perl.

Think of the recipes as a quick reference guide and the expanded versions as tutorials. The PDSC currently has these parts: General Tips: recipes or expanded version Lists of Lists: recipes expanded version Hashes of Lists: recipes Lists of Hashes: recipes Hashes of Hashes: recipes Heterogeneous Records: recipes Recursive Data Structures: (unwritten, but you might consider looking at the Patricia module and its test driver for a sample of this.) CPAN Perl. CamelBones, an Objective-C/Perl bridge for Mac OS X &amp; GNUSt. CamelBones, an Objective-C/Perl bridge for Mac OS X &amp; GNUSt. CocoaDialog. Perl.com: The Source for Perl -- perl development, perl conferen. ExifTool by Phil Harvey. Introducing Mac::Glue. Thanks to the popularity of Mac OS X, the new iBook, and the PowerBook G4, it's no longer uncool to talk about owning an Apple. Longtime Mac devotees have now been joined by longtime Unix devotees and pretty much anyone who wants computers to be shiny, and speakers at conferences such as the Open Source Convention are beginning to get used to looking down over a sea of Apple laptops.

One of the great features about Apple's Mac OS is its support for flexible inter-process communication (IPC), which Apple calls inter-application communication (IAC). One of the components of IAC is called Apple events, and allows applications to command each other to perform various tasks. On top of the raw Apple events layer, Apple has developed the Open Scripting Architecture, an architecture for scripting languages such as Apple's own AppleScript.

But this is perl.com, and we don't need inferior scripting languages! In the beginning, there was Mac::AppleEvents. Perl Monks - The Monastery Gates.