Михаил Че > Loop-Flow-Object-0.01 > Loop::Flow::Object

Download:
Loop-Flow-Object-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source   Latest Release: Loop-Flow-Object-0.03

ПРИВЕТСТВИЕ SALUTE ^

Доброго всем! Доброго здоровья! Доброго духа!

Hello all! Nice health! Good thinks!

NAME ^

Loop::Flow::Object - запуск цикла для объекта с контролем и переключением ветвления, выполнение кода в указанных методах объекта.

Loop::Flow::Object - looping code of one object with forking on/off. Simple switch and count of forks.

Executing code, control count and exit from loop by the object methods.

VERSION ^

Version 0.01

SYNOPSIS ^

    use Loop::Flow::Object;
    use Some::My::Module;
    
    my $obj = Some::My::Module->new(...);
    
    # no-no this is on Some/My/Module.pm !!
    sub Some::My::Module::one {# main code in loop
        my $self = shift;
        my @data = @_;
        ...
    }
    # no-no this is on Some/My/Module.pm !!
    sub Some::My::Module::data {# data for main code in loop
        my $self = shift;
        my $count = shift;
        ...
    }
    my $loop = Loop::Flow::Object->new(max_count=>..., forks=>..., debug=>...);
    $loop->start($obj, main=>'one', data=>'data', end=>'...',);
    ...

EXPORT ^

None.

METHODS ^

new(max_count=>..., forks=>..., debug=>...) Options:

start($obj, main=>'<main_method>', data=>'<data_method>', end=>'<end_method>',) Looping for $obj which have methods:

AUTHOR ^

Mikhail Che, <m.che at aukama.dyndns.org>

BUGS ^

Please report any bugs or feature requests to bug-loop-flow at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Loop-Flow. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Loop::Flow::Object

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

Copyright 2012 Mikhail Che.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: