Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Text::Label::Prepender 1.0

    Download button

    No screenshots available
    Downloads: 260  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    T. M. Brannon | More programs
    Perl Artistic License / FREE
    February 18th, 2009, 12:51 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::Label::Prepender description

    Dynamically prepend label to input strings

    Text::Label::Prepender is a Perl module to dynamically prepend label to input strings.

    SYNOPSIS

     use Text::Label::Prepender;

     my $prepender = Text::Label::Prepender->new (
     initial_label => '.', # initial label
     separator => '/', # output between label and data line
     label_char => ':', # the character signifying a line is a label
     ) ;

    my @input = qw(aaa bbb ccc one one/hump: ddd eee fff two/hump: ggg hhh iii);

    for (@input) {

     if (my $processed = $prepender->process($_)) {
     print $processed, "
    ";
     }

    }

     OUTPUT:

     ./aaa
     ./bbb
     ./ccc
     one/hump/ddd
     one/hump/eee
     one/hump/fff
     two/hump/ggg
     two/hump/hhh
     two/hump/iii



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    input strings | label prepender | Perl class | Perl | input | strings

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM