home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeJava and XSLTSearch this book

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.



Library Navigation Links

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