Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Text::Tabs 2009.0305

    Download button

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

    License / Price:

    Last Updated:

    Category:
    David Muir Sharnoff | More programs
    Other/Proprietary Li... / FREE
    June 22nd, 2010, 03:12 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::Tabs description

    Expand and unexpand tabs per the unix expand(1) and unexpand(1)

    Text::Tabs is a Perl module that does about what the unix utilities expand(1) and unexpand(1) do. Given a line with tabs in it, expand will replace the tabs with the appropriate number of spaces. Given a line with or without tabs in it, unexpand will add tabs when it can save bytes by doing so (just like unexpand -a). Invisible compression with plain ASCII!

    SYNOPSIS

     use Text::Tabs;

     $tabstop = 4; # default = 8
     @lines_without_tabs = expand(@lines_with_tabs);
     @lines_with_tabs = unexpand(@lines_without_tabs);

    EXAMPLE

     #!perl
     # unexpand -a
     use Text::Tabs;

     while () {
     print unexpand $_;
     }

    Instead of the expand comand, use:

     perl -MText::Tabs -n -e 'print expand $_'

    Instead of the unexpand -a command, use:

     perl -MText::Tabs -n -e 'print unexpand $_'



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    unexpand tabs | expand tabs | Perl module | unexpand | expand | tabs

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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