Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 1996 14:04:22 +0100
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        mark@linus.demon.co.uk (Mark Valentine)
Cc:        hackers@freebsd.org
Subject:   Re: cvs commit: src/share/doc/handbook porting.sgml ports.sgml
Message-ID:  <199611121304.OAA00453@campa.panke.de>
In-Reply-To: <199611120404.EAA23202@janai.thuvia.org>
References:  <199611120404.EAA23202@janai.thuvia.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Valentine writes:
>> From: Wolfram Schneider <wosch@cs.tu-berlin.de>
>> Jordan K. Hubbard writes:
>> >> I'm guessing sed, I thought Jordan had a disdain dislike for perl.  :-)
>> >
>> >sed, definitely.  I mean, who needs perl when you've already got
>> >sed, sh and awk? :-)
>> 
>> Perl is 8 bit clean and can edit binary data. 
>> 
>> $ wc /kernel
>>     2379   24484  808608 /kernel
>> $ perl -npe 's,/sbin/,/SBIN/,g' /kernel | wc
>>     2379   24484  808608 /kernel
>> $ sed 's,/sbin/,/SBIN/,g' /kernel | wc
>>       67     753   29419
>
>$ wc /kernel
>    3672   44913 1282638 /kernel
>$ /usr/gnu/bin/sed 's,/sbin/,/SBIN/,g' /kernel | wc
>    3672   44913 1282638
>
>Are there any bugs in the perl implementation? 

Yes, of course.


>If there are, do I have
>a choice of implementations?  ;-)

perl4, perl5, perl5.00x

Wolfram



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611121304.OAA00453>