Perl Cd Bookshelf [Electronic resources]

نسخه متنی -صفحه : 875/ 256
نمايش فراداده

8.208. Text::Tabs

Provides subroutines that expand tabs into spaces and compress ("unexpand") spaces into tabs. The appearance of the text is unchanged. Defines the tabstop variable, which defines the number of spaces equivalent to a tab. Default is 8. Exports the following functions.

expand

expand (text)

Given an array of strings (text) containing tabs, replaces each tab character with the equivalent number of spaces.

unexpand

unexpand (text)

Given an array of strings (text) that may or may not contain tabs, replaces each $tabstop consecutive spaces with a tab character.


8.207. Text::Soundex8.209. Text::Wrap


Copyright © 2002 O'Reilly & Associates. All rights reserved.