
Perl
Get flash to fully experience Pearltrees
Writing a REST Client in Perl
Contents Status of this document This document is mirrored on CPAN as CPAN /modules/04pause.html.
How to contribute to CPAN
List::MoreUtils
List::MoreUtils - Provide the stuff missing in List::Util use List :: MoreUtils qw ( any all none notall true false firstidx first_index lastidx last_index insert_after insert_after_string apply after after_incl before before_incl indexes firstval first_value lastval last_value each_array each_arrayref pairwise natatime mesh zip uniq minmax ); List::MoreUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util . All of the below functions are implementable in only a couple of lines of Perl code. Using the functions from this module however should give slightly better performance as everything is implemented in C. The pure-Perl implementation of these functions only serves as a fallback in case the C portions of this module couldn't be compiled on this machine.List::Util
Version 0.16. Cache::Memcahced::Fast is a Perl client for memcached , a memory cache daemon ( http://www.danga.com/memcached/ ). Module core is implemented in C and tries hard to minimize number of system calls and to avoid any key/value copying for speed. As a result, it has very low CPU consumption. API is largely compatible with Cache::Memcached , original pure Perl client, most users of the original module may start using this module by installing it and adding "::Fast" to the old name in their scripts (see "Compatibility with Cache::Memcached" below for full details).
Cache::Memcached::Fast
Getopt::Long
Getopt::Long - Extended processing of command line options use Getopt :: Long ; my $data = "file.dat" ; my $length = 24 ; my $verbose ; $result = GetOptions ( "length=i" => \ $length , "file=s" => \ $data , "verbose" => \ $verbose ); The Getopt::Long module implements an extended getopt function called GetOptions(). This function adheres to the POSIX syntax for command line options, with GNU extensions. In general, this means that options have long names instead of single letters, and are introduced with a double dash "--".Perl version Preferences <div class="noscript"><p><strong>Please note: Many features of this site require JavaScript. You appear to have JavaScript disabled, or are running a non-JavaScript capable web browser.
functions A-Z
sprintf
So you want to get going in a hurry? To illustrate the use of SWIG, suppose you have some C functions you want added to Tcl, Perl, Python, Java and C#. Specifically, let's say you have them in a file 'example.c' /* File : example.c */ #include <time.h> double My_variable = 3.0; int fact(int n) { if (n <= 1) return 1; else return n*fact(n-1); } int my_mod(int x, int y) { return (x%y); } char *get_time() { time_t ltime; time(<ime); return ctime(<ime); } Interface file

