Re: [PATCH] Start revamping perlipc.pod

[email protected] (Leon Timmermans) Sun, 5 Sep 2010 15:57:38 +0200
Newsgroups perl.perl5.porters,perl.documentation
Message-ID <[email protected]>
On Sun, Sep 5, 2010 at 7:03 AM, Shlomi Fish <[email protected]> wrote:
> Inspired by a message ot the perl documentation proejct, I started workin=
g on
> revamping perlipc.pod here:

Good idea :-)

> What I did so far is convert all tabs to spaces (as the indentation was v=
ery
> erratic) and started modernising the code (adding line spaces, declare
> variables with my, not cuddle else's, etc.). So far I've reached the name=
d
> pipes section in my code coverage, and I'm planning to convert the socket
> examples to IO::Socket when I get to them.

Some of my ideas and questions for perlipc would be:

* Reorganize the order of chapters. Signals *really* should not be the
first thing on the list. In fact they should probably leave only SysV
IPC behind them. Named pipes should probably also be moved down.
* Convert all glob filehandles to lexical filehandles.
* Convert all open's to the 3+ argument form where possible.
* Make it use more core and CPAN modules instead of reinventing code
(e.g. autodie, IPC::System::Simple, IPC::Signal, IO::Pipe, etc=E2=80=A6).
* Are there actually still operating systems out there where perl has
SysV behavior for signal handlers? Probably some rather old
installations of SysV derived unices, but I think this is no longer
relevant except maybe in perlport.
* Should SysV IPC be covered at all? I've never seen a Perl program
use it in the wild. Rightly so if you ask me, because using it from
Perl sucks even more than using it from C.

Leon