home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_43d367e0d0839f07c192c58119d23764
< prev
next >
Wrap
Text File
|
2000-03-23
|
4KB
|
97 lines
<HTML>
<HEAD>
<TITLE>Text::Striphigh - Perl extension to strip the high bit off of ISO-8859-1 text.</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::Striphigh - Perl extension to strip the high bit off of ISO-8859-1 text.</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="#maintenance">MAINTENANCE</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::Striphigh - Perl extension to strip the high bit off of ISO-8859-1 text.</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::Striphigh 'striphigh'</PRE>
<PRE>
$SevenBitsText = striphigh($TextContainingEightBitCharacters);</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>The Text::Striphigh module exports a single function: <CODE>striphigh</CODE>. This
function takes one argument, a string possibly containing high ASCII
characters in the ISO-8859-1 character set, and transforms this into a
string containing only 7 bits ASCII characters, by substituting every
high bit character with a similar looking standard ASCII character, or
with a sequence of standard ASCII characters.</P>
<P>Because of precisely the deficiency this package tries to offer a workaround
for is present in some of the things that process pod, there are no
examples in this manpage. Look at the source or the test script if you
want examples.</P>
<P>
<HR>
<H1><A NAME="maintenance">MAINTENANCE</A></H1>
<P>If you ever want to change the striphigh function yourself, then don't
change the one containing the mile long <A HREF="../../../lib/Pod/perlfunc.html#item_tr"><CODE>tr{}{}</CODE></A> statement that you see
at first, change the one behind the <CODE>__DATA__</CODE> that's a lot more readable.</P>
<P>After you've done that, simply run the <CODE>Striphigh.pm</CODE> file through perl
to generate a new version of the first routine, and in fact of the entire
file, something like this:</P>
<PRE>
perl -w Striphigh.pm > Striphigh.pm.new
mv Striphigh.pm.new Striphigh.pm</PRE>
<P>
<HR>
<H1><A NAME="bugs">BUGS</A></H1>
<P>Assumes the input text is ISO-8859-1, without even looking at the LOCALE
settings.</P>
<P>Some translations are probably less than optimal.</P>
<P>People will be offended if you run their names through this function, and
print the result on an envelope using an outdated printing device. However,
it's probably better than having that printer print a name with a high ASCII
character in it which happens to be the command to set the printer on fire.</P>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Jan-Pieter Cornet <<A HREF="mailto:johnpc@xs4all.nl">johnpc@xs4all.nl</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::Striphigh - Perl extension to strip the high bit off of ISO-8859-1 text.</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>