>>>>> "Adrian" == Adrian Farrell <[EMAIL PROTECTED]> writes:
Adrian> The problem is that $answer returns a value of 1 and not the Adrian> contents of the printf. I guess I've assigned it Adrian> incorrectly. the other odd thing is that the -- print Adrian> "$answer" -- line appears not t be neccesary as the Adrian> preceding line prints to the screen anyway. These aren't unrelated. :-) printf() writes to the screen, just as print() does. Capturing _the return code_ into a variable doesn't change that; that's what your '1' is - a success code. Your problems can be easily solved, though. sprintf() returns the string that printf() would have printed. You can just replace the printf() call with one to sprintf(), and all should work fine. :) Hope this helps, - Chris. -- $a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a As to luck, there's the old miners' proverb: Gold is where you find it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]