NAME
MPGA - Make Perl Great Again - a module that makes it easy to write programs in the PERL programming language.
SYNOPSIS
use MPGA;
flow( [ "aaa", \&fun ] );
sub fun {
my ($self, $args, $flow) = @_;
my ($par) = @$args;
print "fun() infinite loop\n";
print "par: [$par]\n";
return [$self];
}
DESCRIPTION
Something like "Flow driven development".
Flow is a reference to an array of arguments and functions, which. are sequentially processed by the functions of this module.
With this module you can program something like this:
flow( [ $args, ... $args, \&fun1, $another, ..., $args, \&fun2, $more, ..., $args, \&fun3 ] );
A prerequisite is that the functions in the flow must satisfy a few. simple conditions: - take three arguments - ($self, $args, $flow) - return a reference to an array - [ @flow_chunk ]
SEE ALSO
https://github.com/nni7/MPGA
AUTHOR
NN - Nikolay Neustroev
COPYRIGHT AND LICENSE
Copyright (C) 1997-2024 by NN
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.32.1 or, at your option, any later version of Perl 5 you may have available.