Wiggins D Anconia wrote:
>
> Notice the difference in the docs:
>
> printf FILEHANDLE FORMAT, LIST
> printf FORMAT, LIST
>
> In the first there is NO comma following the filehandle, this means it
> is interpreted in a different manner than the rest of the argument list,
> or probably to be more precise isn't an argument at all... I am sure one
> of the gurus will chime in with the actual technical name of what this
> spot is actually called in this context since I either don't know or it
> escapes me currently.

Hi Wiggins.

The first instance is using 'printf' as a method call:

  printf STDOUT (FORMAT, LIST)

is the same as

  STDOUT->printf(FORMAT, LIST)

In the second case 'printf' is just a list operator.

HTH,
Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to