At 11:54 AM 9/4/00 -0700, Nathan Wiger wrote:
> > Seems a bit rare and unimportant -- until one observes how this
> > would also solve the problem of people being confused by this
> > gobbling up their handle:
> >
> >     my($line) = <FH>;
>
>And a nice side effect too. As Peter says, the only problem is people
>that are relying on this to get the actual last line...but I suspect
>that's far fewer people than the ones would just want the first line and
>used ()'s on my out of habit.

I hope people are relying on it to get the first line, not the last, or 
they're in trouble:

$ perl -e 'my($line)=<>;print $line'
foo
bar
baz
^D
foo

--
Peter Scott
Pacific Systems Design Technologies

Reply via email to