Re: middle line, redux

2001-12-03 Thread Philip Newton
On Sun, 2 Dec 2001 13:49:04 + (GMT), [EMAIL PROTECTED] (Jonathan e. paton) wrote: I honestly think I've found the only true solution, which is: perl -p Hm? How does this print only the middle line of a file? Cheers, Philip

Re: middle line, redux

2001-12-03 Thread Simon Cozens
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. -- Actually Perl *can* be a Bondage

Re: middle line, redux

2001-12-03 Thread Piers Cawley
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