GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Text::NWrap(3) User Contributed Perl Documentation Text::NWrap(3)

Text::NWrap - a simple text wrapping module

    use Text::NWrap;

    $NWrap::columns = 132;
    NWrap::wrap('    ','',@text);

Text::NWrap is a simple interface to Text::Format. If you want more functionality just use Text::Format. Text::NWrap is meant to replace Text::Wrap. Its interface is basically identical to Text::Wrap's. However, nothing is exported by default and it does not call die under any circumstance.
wrap $firstIndent, $bodyIndent, @text
Wrap @text using $firstIndent for the first line's indent and $bodyIndent for the indentation of the body of the paragraph.
$columns
Lets you set the width of the paragraph. Default is 72 characters wide.

    use Text::NWrap;

    print NWrap::wrap('','',"hello world this is some silly example",
            "and some more text that should explain the use");

    use Text::NWrap qw(wrap $columns);

    $columns = 20;
    wrap("\t",'',"some text that should be wrapped");

Gabor Egressy gabor@vmunix.com

Copyright (c) 1998 Gabor Egressy. All rights reserved. All wrongs reversed. This program is free software; you can redistribute and/or modify it under the same terms as Perl itself.

1998-02-23 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.