[32709] in Perl-Users-Digest
Perl-Users Digest, Issue: 3973 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jun 24 21:09:18 2013
Date: Mon, 24 Jun 2013 18:09:04 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 24 Jun 2013 Volume: 11 Number: 3973
Today's topics:
interactive selection of text lines <framstag@rus.uni-stuttgart.de>
Re: interactive selection of text lines <ben@morrow.me.uk>
Re: nice parallel file reading (David Combs)
Re: nice parallel file reading <rweikusat@mssgmbh.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 24 Jun 2013 07:54:18 +0000 (UTC)
From: Ulli Horlacher <framstag@rus.uni-stuttgart.de>
Subject: interactive selection of text lines
Message-Id: <kq8tva$kas$1@news2.informatik.uni-stuttgart.de>
I want to (de-)select interactivly text lines with cursor keys and space
bar.
Something like Tk::Checkbutton, but for a terminal and not GUI.
The text must be scrollable, because I have more text lines than they
would fit on the terminal.
Example: select files from a directory listing.
Is there a module for this kind of task?
--
Ullrich Horlacher Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK E-Mail: horlacher@tik.uni-stuttgart.de
Universitaet Stuttgart Tel: ++49-711-68565868
Allmandring 30a Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
------------------------------
Date: Mon, 24 Jun 2013 09:20:36 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: interactive selection of text lines
Message-Id: <k3cl9a-eel.ln1@anubis.morrow.me.uk>
Quoth Ulli Horlacher <framstag@rus.uni-stuttgart.de>:
> I want to (de-)select interactivly text lines with cursor keys and space
> bar.
> Something like Tk::Checkbutton, but for a terminal and not GUI.
>
> The text must be scrollable, because I have more text lines than they
> would fit on the terminal.
> Example: select files from a directory listing.
>
> Is there a module for this kind of task?
Searching search.cpan.org for 'dialog', 'curses' or 'slang' each brings
up several results, some of which look promising. I've not used any of
them.
Ben
------------------------------
Date: Mon, 24 Jun 2013 05:15:14 +0000 (UTC)
From: dkcombs@panix.com (David Combs)
Subject: Re: nice parallel file reading
Message-Id: <kq8kl2$n7c$1@reader2.panix.com>
Coroutines -- would they make this task simpler?
Perl 6 will, I assume, have them; maybe even 5 does?
David
------------------------------
Date: Mon, 24 Jun 2013 09:58:16 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Re: nice parallel file reading
Message-Id: <87sj07c2c7.fsf@sapphire.mobileactivedefense.com>
dkcombs@panix.com (David Combs) writes:
> Coroutines -- would they make this task simpler?
No. Despite some amount of 'clueless rambling' on Wikipedia for this
topic (might have been changed in the meantime, I didn't check it
again after some time before the posting you're replying to was
written) an iterator/ generator is not a coroutine but an ordinary
subroutine with a single point of entry and exit, it's just a
stateful subroutine. This is essentially the same as 'an object' (in
the 'OOP' sense) with a single method and the convenient way to provide
this will usually be 'a closure' (subroutine which encloses some part
of the lexical environment it was created in).
'Single point of exit' does not refer to stuff like 'multiple return
statements in a subroutine body' but to the location where the
control-flow resumes after the subroutine has finished executing which
is always the statement after the call (Unless the code throws an
exception. This would be the common example of a subroutine with
multiple points of exit). In contrast to this, a coroutine could
yield execution to another, arbitrary coroutine at some 'random' part
of its 'function body' (multiple points of exit) and execution would
resume after the most recently performed yield (multiple points of
entry). This is really the same as 'cooperative [userspace] threading'
(something another moro^Wvery informed person is apt to re-implement
RSN whenever that last offender managed to learn why this isn't a good
idea ...).
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 3973
***************************************