Florentin Ionescu wrote:

> Can you please elaborate why"defined(<$new_sock>)"
> does not assign data to $_ ?
> My understanding was that although redundant
> behavior in both cases should be identical.

  while(<FH>)

is a shortcut for

  while(defined($_=<FH>))

but

  defined(<FH>)

is not a shortcut for

  defined($_=<FH>)

Angle operator is magical inside of while loop condition
to simplify filters like:

  /^\s+#/ or print while <>;

- RaFaL Pocztarski, [EMAIL PROTECTED]

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

Reply via email to