can i do this? i am learning this on my own..and from the book..simple unix i am not sure if the syntax would work
if
statement
then
statement
do or for or while
statement
done
else
statement
fi....
I dont know how else to explain that...I hope I... (2 Replies)
hi everyone,
i am learning CGI using Perl, but i am having problem to compile and run the scripts.
the thing is that, when i want to compile my scripts i have to get connected to the internet and have to upload the scripts to a server and then only i can compile and run my scripts.
so, can... (2 Replies)
Does anyone know where I might be able to download the exercises from the learning perl 3rd edition book. Any URL's would be valuable! Thanks:confused: (1 Reply)
Hi,
It is very urgent.
Pls guide me in learning Perl Module and the Packages.
Eventhough i tried in the google, I didnt get upto my expectations.
Pls guide me how to create , build Module and the package.
Many Thanks. (3 Replies)
Hi,
i have started to learn unix (on and off for the past few months) and am wishing to move into that area in the administration field of it.
I have been working in the help desk area (desktop support - windows based) for about 2.5 years and moved into a team leading role for 1 year in which i... (1 Reply)
Seems like it's written out pretty well for a beginner to learn, any thoughts or recommendations for other books? I'd post the link but I can't do that yet.
The book is called "Beginning Perl" by Simon Cozens (2 Replies)
Good afternoon,
I am not trying to start a debate. Please don't take it that way. I'm not trying to make this a Perl versus Bash scripts thing.
I have been writing shell scripts for several years. I am not 100%, but I seem to get the job done. I would like to start focusing on spending... (11 Replies)
Hello All,
I am actually learning PERL and more interested to learn CGI script too. Can any suggest a forum or weblink which is more helpful for a dummy CGI developer.
Thanks (6 Replies)
Discussion started by: posix
6 Replies
LEARN ABOUT DEBIAN
io::async::mergepoint
IO::Async::MergePoint(3pm) User Contributed Perl Documentation IO::Async::MergePoint(3pm)NAME
"IO::Async::MergePoint" - resynchronise diverged control flow
SYNOPSIS
This module as now been moved to its own dist of Async::MergePoint.
It is kept here as a trivial subclass for backward compatibility. Eventually this subclass may be removed. Any code using
"IO::Async::MergePoint" should instead use Async::MergePoint.
use Async::MergePoint;
my $merge = Async::MergePoint->new(
needs => [ "leaves", "water" ],
on_finished => sub {
my %items = @_;
# Make tea using $items{leaves} and $items{water}
}
);
Kettle->boil(
on_boiled => sub { $merge->done( "water", $_[0] ) }
);
Cupboard->get_tea_leaves(
on_fetched => sub { $merge->done( "leaves", $_[0] ) }
);
DESCRIPTION
Often in program logic, multiple different steps need to be taken that are independent of each other, but their total result is needed
before the next step can be taken. In synchonous code, the usual approach is to do them sequentially.
An "IO::Async"-based program could do this, but if each step involves some IO idle time, better overall performance can often be gained by
running the steps in parallel. A Async::MergePoint object can then be used to wait for all of the steps to complete, before passing the
combined result of each step on to the next stage.
A merge point maintains a set of outstanding operations it is waiting on; these are arbitrary string values provided at the object's
construction. Each time the "done" method is called, the named item is marked as being complete. When all of the required items are so
marked, the "on_finished" continuation is invoked.
When an item is marked as complete, a value can also be provided, which would contain the results of that step. The "on_finished" callback
is passed a hash (in list form, rather than by reference) of the collected item values.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-10-24 IO::Async::MergePoint(3pm)