Winfried Trumper > Text-Placeholder > Text::Placeholder::Group::Aggregator

Download:
Text-Placeholder-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Text::Placeholder::Group::Aggregator - groups groups

SYNOPSIS ^

        use Text::Placeholder;
        my $placeholder = Text::Placeholder->new(
                my $aggregator = '::Aggregator');
        $aggregator->add_group(
                my $file_name = '::OS::Unix::File::Name',
                my $file_properties = '::OS::Unix::File::Properties',
                );
        $placeholder->compile('[=file_timestamp_modification=] / [=file_name_only=] / [=file_owner_name=] / [=file_mode_rwx=]');

        $aggregator->subject('/tmp/test.dat');
        print ${$placeholder->execute()}, "<-\n";

DESCRIPTION ^

Provides the placeholders of the registered groups. Rationale: there are cases where you want to set the subject only once.

METHOD REFERENCE (API) ^

subject(...)

Is forwarded to registered groups.

KNOWN BUGS AND LIMITATIONS ^

This is the first public release.

AUTHOR ^

Winfried Trumper <pub+perl(a)wt.tuxomania.net>

COPYRIGHT AND LICENSE ^

Copyright (C) 2011 Winfried Trumper

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: