[Israel.pm] Perl Advocacy

Gabor Szabo gabor at pti.co.il
Mon Dec 27 06:44:06 PST 2004

On Mon, 27 Dec 2004, david istermann wrote:

> What bugs me most is that in Perl there is no equivalent for PHP's str_replace:
> $newstr = str_replace( array('<', '>', '&'), array('&lt;', '&gt;',
> '&amp;'), $oldstr);

That's really useful.
Worse than that there is no trim that would remove spaces from the
beginning and the end of a string.


More information about the Perl mailing list