in reply to I don't understand string versus numeric context

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re: I don't understand string versus numeric context

Replies are listed 'Best First'.
Re^2: I don't understand string versus numeric context
by GrandFather (Saint) on Jan 03, 2010 at 05:01 UTC

    Actually, no. sprintf is a function that generates a formatted output string. The warning is because sprintf is being used in a context where its result is not being used. The the problem were due to a failed read the warning would be about using an undefined value instead.

    See corion's answer for the good oil.


    True laziness is hard work