|
Posted by Hans Mulder on October 12, 2008, 2:25 pm
Please log in for more thread options
Jürgen Exner wrote:
>>>> 4.24: How do I reverse a string?
>>>> Use "reverse()" in scalar context, as documented in "reverse" in
>>>> perlfunc.
>>>>
>>>> $reversed = reverse $string;
>>> Duuuh, isn't that rather obvious?
>> It's not been obvious to most people I teach. Most people only see it
>> as a list operator.
>>
>>> Therefore I suggest removing it.
>> It's not hurting anyone where it is.
>
> It is cluttering the FAQ, therefore I suggested removing it /if/ it
> doesn't provide any useful information. However apparently there are
> indeed people to whom it is useful.
>
> Do others share Brian's experience/sentiment?
I seem to remember this question was asked frequently
before it was added to the FAQ.
So I agree with Brian.
-- HansM
|