On May 15, Paul said:
>
>--- Peter Cornelius <[EMAIL PROTECTED]> wrote:
>> The doesn't read into $_. You can add a 'print $_;' in there
>> to verify it. I think you're getting confused by the
>>while(){...}
>> structure. This puts the result of the readline into $_ for you if
>> the is t
--- Peter Cornelius <[EMAIL PROTECTED]> wrote:
> The doesn't read into $_. You can add a 'print $_;' in there
> to verify it. I think you're getting confused by the
>while(){...}
> structure. This puts the result of the readline into $_ for you if
> the is the only thing in the '()'. Ot
The doesn't read into $_. You can add a 'print $_;' in there to
verify it. I think you're getting confused by the while(){...}
structure. This puts the result of the readline into $_ for you if the
is the only thing in the '()'. Otherwise, I believe just calling
on a line by itself sends th
: Why does reading into a variable instead of $_ make a difference?
: Why does the read for the date work with $_ just fine??
In the second example, change ; to $_ = ;.
The angle operator only assigns the next line to $_ when it's
the only thing in the conditional of a while() statement. As a