On Thu, Apr 20, 2006 at 09:15:12AM +0200, Dr.Ruud wrote: > Chad Perrin schreef: > > > This is kind of a frivolous question, but . . . is there some way to > > golf this? > > > > while (<>) { > > s/\n/ /; > > print; > > } > > Create a file called (for example) "-p" with somewhat like this: > > #!/usr/bin/perl -p > y/\n/ / > > > It can run on itself: -p -p
That's cute. I like it. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "The measure on a man's real character is what he would do if he knew he would never be found out." - Thomas McCauley -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>