On Sat, Nov 30, 2002 at 09:26:29PM -0000, Chris Game wrote: > Can anyone explain why > perl -e 'print reverse "forwards" ' prints "forwards"; and to get what I > want I have to use > perl -e 'print $var= reverse "forwards" ' which yields "sdrawrof" ? Why > do I have to introduce the extra variable just to get the print I was > after?
Because your first example is in list context. perl -e 'print scalar reverse "forwards"' -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]