Text/Tabs

Section: Perl Programmers Reference Guide (3)
Updated: perl 5.003 with
Index Return to Main Contents
 

NAME

Text::Tabs -- expand and unexpand tabs  

SYNOPSIS

        use Text::Tabs;
        
        #$tabstop = 8; # Defaults
        print expand("Hello\tworld");
        print unexpand("Hello,        world");
        $tabstop = 4;
        print join("\n",expand(split(/\n/,
                "Hello\tworld,\nit's a nice day.\n"
                )));


 

DESCRIPTION

This module expands and unexpands tabs into spaces, as per the unix expand and unexpand programs. Either function should be passed an array of strings (newlines may not be included, and should be used to split an incoming string into separate elements.) which will be processed and returned.  

AUTHOR

David Muir Sharnoff <muir@idiom.com>


 

Index

NAME
SYNOPSIS
DESCRIPTION
AUTHOR

This document was created by man2html, using the manual pages.
Time: 15:34:42 GMT, January 15, 2023