Re: one liner need help

2009-03-12 Thread chenxy
2009/3/13 Toby Stuart > Hello All > > It's been almost 13 years since I last posted on this board and my Perl > skills are extremely rusty. Could someone help me to convert this to a one > liner:- > > > use strict; > use warnings; > > while (<>) { > /^##\s*(.*)$/ && print $1; > print " && " un

RE: one liner need help

2009-03-12 Thread Toby Stuart
Great. Thankyou chenxy. -Original Message- From: chenxy [mailto:tin...@gmail.com] Sent: Friday, 13 March 2009 2:01 PM To: Toby Stuart Cc: beginners@perl.org Subject: Re: one liner need help 2009/3/13 Toby Stuart < toby.stu...@figtreesys.com.au> Hello All It's been almo

Re: one liner need help

2009-03-12 Thread John W. Krahn
Toby Stuart wrote: Hello All Hello, It's been almost 13 years since I last posted on this board and my Perl skills are extremely rusty. Could someone help me to convert this to a one liner:- use strict; use warnings; while (<>) { /^##\s*(.*)$/ && print $1; print " && " unless eof; } I

Re: one liner need help

2009-03-12 Thread John W. Krahn
John W. Krahn wrote: Toby Stuart wrote: Hello All Hello, It's been almost 13 years since I last posted on this board and my Perl skills are extremely rusty. Could someone help me to convert this to a one liner:- use strict; use warnings; while (<>) { /^##\s*(.*)$/ && print $1; print "

Re: one liner need help

2009-03-12 Thread John W. Krahn
John W. Krahn wrote: John W. Krahn wrote: Toby Stuart wrote: Hello All Hello, It's been almost 13 years since I last posted on this board and my Perl skills are extremely rusty. Could someone help me to convert this to a one liner:- use strict; use warnings; while (<>) { /^##\s*(.*)$/

Re: one liner need help

2009-03-13 Thread Paul Johnson
On Fri, Mar 13, 2009 at 01:13:38PM +1100, Toby Stuart wrote: > Hello All > > It's been almost 13 years since I last posted on this board Not to *this* one. > PS. Where is $Bill? Is he still around? Ah, *that* one. That was a long time ago in a galaxy far, far away. -- Paul Johnson - p...@