Simon Cozens <[EMAIL PROTECTED]> writes:
> On Mon, Dec 03, 2001 at 08:54:06PM +0100, Philip Newton wrote:
>> > perl -p
>> Hm? How does this print only the middle line of a file?
>
> Who said anything about "only"?
>
> Write a program that reads the lines from a file and outputs
> the middle line.
I'm depressed to point out that, a truly pedantic reading would have
you do:
perl -pl
}{$_='the middle line'
But that's probably longer than the leader's solution of the hard
problem.
--
Piers
"It is a truth universally acknowledged that a language in
possession of a rich syntax must be in need of a rewrite."
-- Jane Austen?