Michael,

I didn't say that Perl was slower. I didn't know the difference between the
overhead of the Perl interprter for a built-in function and calling a shell
command from the Perl code because in both cases Perl commands were to be
executed and interprted. My concern was the portability which recommended
Perl.

Thanks,

Ahmed

----- Original Message -----
From: Michael Fowler
To: Ahmed Moustafa Ibrahim Ahmed
Cc: [EMAIL PROTECTED] ; Nafiseh Saberi
Sent: Tuesday, November 27, 2001 10:37 AM
Subject: Re: shell in perl


On Tue, Nov 27, 2001 at 04:18:15AM -0800, Ahmed Moustafa Ibrahim Ahmed
wrote:
> Performance wise, both are almost the same, I think. But using the Perl
> built-in functions would help make your code more portable.

Given that a shell script has to fork and exec a seperate process for almost
every line of code I would think the opposite, that Perl would be faster.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to