June 15, 2004 Perl's "format" | ||||
---|---|---|---|---|
| ||||
Does anyone know of a D (or actually, C or C++ as well) equivalent to Perl's "format" support for report and table generation? I know there are an infinite number of ways to get printf and/or << to do similar things but Perl does just what I want. I'm looking for something like FancyPerlFormattingOutputStream s = ... s.header = r"Blah Result"; s.format = r"@<<<<< @##.###"; loop over data and s.write(str); s.write(num); thanks, -Ben |
June 17, 2004 Re: Perl's "format" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | In article <cani0k$mj$1@digitaldaemon.com>, "Ben Hinkle" <bhinkle@mathworks.com> wrote: > Does anyone know of a D (or actually, C or C++ as well) equivalent to Perl's "format" support for report and table generation? I know there are an infinite number of ways to get printf and/or << to do similar things but Perl does just what I want. Have you considered using Perl's C API in your D program? If not, feed these to your favorite command line interpreter: man perl man perlembed |
Copyright © 1999-2021 by the D Language Foundation