Thomas Wittek > Konstrukt-0.5-beta13 > Konstrukt::Plugin::sortlines

Download:
konstrukt/Konstrukt-0.5-beta13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

NAME ^

Konstrukt::Plugin::sortlines - Sort all lines of plaintext nodes

SYNOPSIS ^

Usage:

        <& sortlines &>
                some
                <!-- comments -->
                unsorted
                lines
                <!-- will be put -->
                here
                <!-- on top of the list -->
        <& / &>

Result:

        <!-- comments -->
        <!-- will be put -->
        <!-- on top of the list -->
        here
        lines
        some
        unsorted

DESCRIPTION ^

This plugin will sort the input lines

METHODS ^

prepare

If the input is not dynamic, we can already sort in the prepare step.

Parameters:

execute

Sort the input.

Parameters:

process

As prepare and execute are almost the same each run will just call this method.

Parameters:

AUTHOR ^

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO ^

Konstrukt::Plugin, Konstrukt