Personal tools
Skip to content. | Skip to navigation
Text::Tabs performs the same job that the UNIX expand(1) and unexpand(1) commands do: adding or removing tabs from a document. Text::Wrap::wrap() will reformat lines into paragraphs. All it does is break up long lines, it will not join short lines together.
Text::Unidecode provides a function, `unidecode(...)' that takes Unicode data and tries to represent it in US-ASCII characters (i.e., the universally displayable characters between 0x00 and 0x7F). The representation is almost always an attempt at *transliteration* -- i.e., conveying, in Roman letters, the pronunciation expressed by the text in some other writing system.
This Thread module served as the front end to the old-style thread model, called 5005threads, that has been removed in version 5.10. For old code and interim backwards compatibility, the Thread module has been reworked to function as a front end for the new interpreter threads (ithreads) model. However, some previous functionality is not available. Further, the data sharing models between the two thread models are completely different, and anything to do with data sharing has to be thought differently. You are strongly encouraged to migrate any existing threaded code to the new model (i.e., use the threads and threads::shared modules) as soon as possible.
This module provides thread-safe FIFO queues that can be accessed safely by any number of threads.
Semaphores provide a mechanism to regulate access to resources. Unlike locks, semaphores aren't tied to particular scalars, and so may be used to control access to anything you care to use them for. Semaphores don't limit their values to zero and one, so they can be used to control access to some resource that there may be more than one of (e.g., file handles). Increment and decrement amounts aren't fixed at one either, so threads can reserve or return multiple resources at once.
These are Perl modules that helps connecting classes with arrays, hashes, handles, and scalars.
This Perl module can be used to go through a list over and over again. Once you get to the end of the list, you go back to the beginning. You do not have to worry about any of this since the magic of tie does that for you.
Tie::File represents a regular text file as a Perl array. Each element in the array corresponds to a record in the file. The first line of the file is element 0 of the array; the second line is element 1, and so on. The file is not loaded into memory, so this will work even for gigantic files. Changes to the array are reflected in the file immediately.
This package allows a tied hash to load its values automatically on the first access, and to use the cached value on the following accesses.
This module provides the ability to use references as hash keys if you first "tie" the hash variable to this module. Normally, only the keys of the tied hash itself are preserved as references; to use references as keys in hashes-of-hashes, use Tie::RefHash::Nestable, included as part of Tie::RefHash.