in reply to Re: Removing spaces, again.
in thread Removing spaces, again.

Nope. The return value of an s/// is not the changed string, but the true/false success value.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Removing spaces, again.
by Gloom (Monk) on Mar 16, 2001 at 19:30 UTC
    I think s/// return the number of modifications issued. Using s/// whitout g modificator, result to return true/false but... saying 0/1 is more sharp ( scuse me for this effrontery master ;)

    _______________________
    Please, don't hurt me !