nv-l

Re: Perl vs shell scripts

1999-03-17 12:25:43
Subject: Re: Perl vs shell scripts
From: Chris Cowan <chris.cowan AT 2ND-WAVE DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Wed, 17 Mar 1999 09:25:43 -0800
"MENEZES, ALAIN" wrote:
>
> >   Never fork a process unless you need to.   For example, I
> > constantly see people writing code that will do a `nslookup` rather
> > than
> > use gethostbyname().
> >
>         [MENEZES, ALAIN]  Do you mean that perl scripts can use
> subroutines (like e.g. gethostbynames() ) ?

Exactly! Perl is very feature rich in this area, even perl4.   I can
actually do a fork(), exec(), wait(), open sockets, there's even a
generic interface to the kernel using syscall().

With perl5, the story gets better.   I can dynamically load libraries
and write modules which can call just about any API library I want to.
Actually, I have always wanted to take some time and write some wrappers
to allow me to use the Netview libraries from perl5.

PS. I wish the Netview NT people had chosen perl rather than Tcl.

Attachment: chris.cowan.vcf
Description: Card for Chris Cowan

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

<Prev in Thread] Current Thread [Next in Thread>