Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 29th, 2001, 04:27 AM
Dups Dups is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 30 Dups User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Report Generation using perl

Hello...

I am developing an application in perl to generate reports based
on the database entries.
At present I use the following way.

open (FILE,">>$filename") || die "report:$!\n";
format FILE=
@<<<<< @<<<< ^<<<<<<<<<<<<
$item1,$item2,$description
~~ ^<<<<<<<<<<< $description
.
write FILE;
close FILE;

But then there is a problem. Depending on the font used
the alignment is changing. Is there any other way of generating
reports. I would have preferred ways using simple "\t and \n".
But then the $description which might contain a few lines would
be aligned in a very bad way.

Could you please provide a better solution.

Thanks in advance..
Dups

Reply With Quote
  #2  
Old June 29th, 2001, 06:12 AM
robert.swift's Avatar
robert.swift robert.swift is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Manchester, UK
Posts: 80 robert.swift User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Hi Dups,

Firstly, you need to use "or" in place of "||" before your die on the open for operator precedence reasons.

Are you formatting for a terminal, web or what?
__________________
Robert.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Report Generation using perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway