Rob Dixon <[EMAIL PROTECTED]> writes:
>
> This is a special case of the 'while' loop. It is
> equivalent to
>
> while (defined($_ = <FILE>)) {
> :
> }
>
> But there is nowhere else that I can think of that
> there is a default destination (left-hand side) of an
> expression.
There is at least this (weird) one:
split; ## @_ = split(' ', $_, 0);
And some more related to yours:
for (;<FILE>;) { ; } ## [ exactly the same as above ]
print while readline; ## ... while defined($_ = readline *ARGV)
print while glob; ## ... while defined($_ = glob $_)
The last one is kind of strange...
--
Steve
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]