Linux SoftwareProgrammingLibrariesString::Truncate 0.100

String::Truncate 0.100


String::Truncate is a Perl module for when strings are too long to be displayed in. SYNOPSIS This module handles the simple but
Developer:   Ricardo Signes
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   5K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


String::Truncate is a Perl module for when strings are too long to be displayed in.

SYNOPSIS

This module handles the simple but common problem of long strings and finite terminal width. It can convert:

"this is your brain" -> "this is your ..."
or "...is your brain"
or "this is... brain"
or "... is your b..."
It's simple:
use String::Truncate qw(elide);

my $brain = "this is your brain";

elide($brain, 16); # first option
elide($brain, 16, { truncate => 'left' }); # second option
elide($brain, 16, { truncate => 'middle' }); # third option
elide($brain, 16, { truncate => 'ends' }); # fourth option

String::Trunc::trunc($brain, 16); # => "this is your bra"

Requirements:
  • Perl
    tags elide brain  option elide  your brain  brain this  string truncate  

    Download String::Truncate 0.100


     http://mirrors.evolva.ro/CPAN/authors/id/R/RJ/RJBS/String-Truncate-0.100.tar.gz


    Authors software

    Net::Delicious::Simple 0.01 (by Ricardo SIGNES)
    Net::Delicious::Simple is a Net::Delicious for backups.

    SYNOPSIS

    use Net::Delicious::Simple;
    my $del = Net::Delicious->new(u

    Math::TotalBuilder::Common 1.10 (by Ricardo SIGNES)

    Math::TotalBuilder 1.10 (by Ricardo SIGNES)
    Math::TotalBuilder is a Perl module to build a whole total out of valued pieces.

    SYNOPSIS

    use Math::TotalBuilder;

    my %lsd

    Sub::Exporter::Tutorial 0.970 (by Ricardo SIGNES)
    Sub::Exporter::Tutorial is a friendly guide to exporting with Sub::Exporter.

    What's an Exporter?

    When you use a module, first i

    Sub::Exporter 0.970 (by Ricardo SIGNES)
    Sub::Exporter is a sophisticated exporter for custom-built routines.

    SYNOPSIS

    Sub::Exporter must be used in two places


    Similar software

    String::Truncate 0.100 (by Ricardo Signes)
    String::Truncate is a Perl module for when strings are too long to be displayed in.

    SYNOPSIS

    This module handles the simple but

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    MathML::Entities 0.13 (by Jacques Distler)
    MathML::Entities is a Perl module that can convert XHTML+MathML Named Entities to Numeric Character References.

    SYNOPSIS

    use M

    AutoZen 2.1 (by Steven James)
    AutoZen is a software 'brain machine' for Linux

    Slide & Stack 2.1.0.0 (by baKno)
    Slide & Stack is a brain challenging game

    benzo 0.3 (by sincere)
    Benzo is a blabberbot written in python

    TEMPO 2.12 (by Aleksandar B. Samardzic)
    TEMPO (Topographic Eeg Mapping PrOgram) is open source software for 3D visualization of brain electrical activity

    Segm 0.90 (by Paul Hughett)
    Segm program for segmentation of MR images of the brain.

    Segm is a set of image analysis tools developed at and used by the Brain

    MajorTeach 0.1 (by Reto Stamm)

    Conexus 0.2 (by Ijtrotts)
    The goal of the Conexus project is to build a graphical database of neuroanatomical connections, focussing on thalamo-cortical and co


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags