home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_2e659590b110213808555f12d4fd9d3d
< prev
next >
Wrap
Text File
|
2000-03-23
|
2KB
|
76 lines
<HTML>
<HEAD>
<TITLE>Text::Tabs -- expand and unexpand tabs per the unix expand</TITLE>
<LINK REL="stylesheet" HREF="../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Text::Tabs -- expand and unexpand tabs per the unix expand</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#bugs">BUGS</A></LI>
<LI><A HREF="#author">AUTHOR</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Text::Tabs -- expand and unexpand tabs per the unix <CODE>expand(1)</CODE> and <CODE>unexpand(1)</CODE></P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
use Text::Tabs;</PRE>
<PRE>
$tabstop = 4;
@lines_without_tabs = expand(@lines_with_tabs);
@lines_with_tabs = unexpand(@lines_without_tabs);</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>Text::Tabs does about what the unix utilities <CODE>expand(1)</CODE> and <CODE>unexpand(1)</CODE>
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. Invisible
compression with plain ascii!</P>
<P>
<HR>
<H1><A NAME="bugs">BUGS</A></H1>
<P>expand doesn't handle newlines very quickly -- do not feed it an
entire document in one string. Instead feed it an array of lines.</P>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>David Muir Sharnoff <<A HREF="mailto:muir@idiom.com">muir@idiom.com</A>></P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Text::Tabs -- expand and unexpand tabs per the unix expand</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>