In an earlier post, Rob Dixon  wrote:

> Chris
>
>     scalar reverse "forwards" is the same as
>     scalar reverse ( "forwards" )
>     It explicitly puts the call to reverse() into scalar context.
Whereas
>     reverse scalar "forwards" is the same as
>     reverse ( scalar "forwards" )
>     which only forces the already scalar string "forwards" to be
scalar.

> When called in scalar context, reverse() reverses the characters in
> its parameter list. If called in list context, it returns the list
> itself in reverse order. So that
>     ( reverse ( "abcd", "efgh" )      gives      ( "efgh", "abcd" )

> while

>     scalar reverse ( "abcd", "efgh" )      gives      "hgfedcba"

OK, thanks Rob and Paul, I've got it now.
-- 
===========================================

Chris Game <chrisgame@!yahoo!dotcodotuk>
===========================================





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to