Ken Foskey wrote:
> I have a script that takes an sql and formats into a report, simple
> stuff.
>
> I have a product that when it changes I want a sub heading.  I have
> coded this.
>
> if( $prior_product ne $sql_product ) {
>     print form...
>     $prior_product = $sql_product;
> }
>
> Is there a better way to code this sort of report formatting?  Seems
> clunky and there should be a generic solution.
>   

That's pretty much how I did it :) There are probably better ways, but
this works.

If you're doing reports from databases, you should check out my module,
PDF::ReportWriter. You can get the latest version from:
http://entropy.homelinux.org/axis

Dan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to