NAME

IO::Extended - more print functions

SYNOPSIS

use IO::Extended ':all';

println 'Hello, this is println calling..';

printfln 'Hello, this is %s calling..', 'printfln';

print my $out = sprintfln 'Hello, this is %s calling..', 'sprintfln';

ind 1;

println "Hello, this is println calling.."; println "Hello, this is println calling..";

ind 2;

println "Hello, this is println calling..";
println "Hello, this is println calling..";

indb;

println "Hello, this is println calling..";

DESCRIPTION

IO::Extended contains a bunch of print-like functions, which automatically add newline characters to the string.

EXPORT

None by default.

This functions of this module need to be exported before use. Use the ':all' syntax for automatically adding the complete set.

VARIABLES

$IO::Extended::space
$IO::Extended::tabsize

Scalars for constructing tabs. Indentation is done via printing space x ( indentation * tabsize ).

FUNCTIONS

printl

Same as normal print, but with indentation.

println

Same as normal print, but adds newline character to the end.

printfln
sprintfln

Same as normal (s)printf, but adds newline character to the FORMAT string (Result).

ind( $integer )

Sets the indentation value.

indn

Increases the indentation one value up.

indb

Decreases the indentation back to previous value.

tabs( $integer )

Sets the tabsize for indentation. Returns the actual tabsize if parameter is omitted.

indstr

Returns the absolute indentation space.

SUPPORT

By author. Ask comp.lang.perl.misc or comp.lang.perl.module if you have very general questions.

If all this does not help, contact me under the emailadress below.

AUTHOR

Murat Uenalan, muenalan@cpan.org

COPYRIGHT

Copyright (c) 1998-2002 Murat Uenalan. Germany. All rights reserved.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

SEE ALSO

perl(1). perlfunc

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 147:

You forgot a '=back' before '=head1'

Around line 149:

'=item' outside of any '=over'