[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Quick PERL job
Morris, David (Allvac, UK) wrote:
$x =~ s/\x00//;
...seems a little shorter. I can't however comment on the benefits of one versus t'other, although your version is a bit more general, n'est pas?
Don't forget the g at the end
$x =~ s/\x00//g;
Otherwise it will only replace the first instance found.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.