[Padre-dev] Mistake in padre (executable)
Gabor Szabo
szabgab at gmail.com
Thu Apr 2 04:39:29 PDT 2009
On Wed, Apr 1, 2009 at 2:47 PM, Offer Kaye <offer.kaye at gmail.com> wrote:
> Hi,
> The 'padre' file installed in perl/bin has what I think is a mistake -
> line 44 says:
>
> {{{
> unless ( $^O eq 'MSWin32' or $ENV{PADRE_DEV} or grep /^(-h|--help)$/, @ARGV) {
> }}}
>
> I think the grep will never return anything since @ARGV is empty at
> this point (Getopt::Long::GetOptions already ran and empties it).
yeah, old and dead code.
Removed. Thanks.
>
> Also, could someone explain please (or even better add comment in the
> code) what is the purpose of the fork() and using threads?
fork() is for putting the process in the background in unix.
The threads, well, Padre uses lots of processes that are working while you type.
We used threads to allow this. See Padre::Task and friends.
More information about the Padre-dev
mailing list