RE: Perplexing problem.........probably beginners luck??

2001-05-15 Thread Jeff Pinyan
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

RE: Perplexing problem.........probably beginners luck??

2001-05-15 Thread Paul
--- 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

RE: Perplexing problem.........probably beginners luck??

2001-05-15 Thread Peter Cornelius
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

Re: Perplexing problem.........probably beginners luck??

2001-05-15 Thread Timothy Kimball
: 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