Chad Perrin wrote: > On Fri, Apr 21, 2006 at 12:48:51PM -0700, John W. Krahn wrote: >>print/.*/g,$"while<> > > Woah, that's pretty short.
You can make it even shorter: print/.*/g,$"for<> > Thanks. Now I just need to go read a bit > and figure out how exactly it works. > > . . . unless you want to explain it. print() provides list context for its arguments and /.*/g in list context returns the contents of its pattern match (everything except newline) and then print the contents of the $" variable which defaults to a single space character. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>