You'll want to use Perl's 'format' keyword. Check:

http://www.perldoc.com/perl5.6/pod/func/format.html

for details. BTW, I heard a rumour that this functionality will go away
in Perl 6, can anyone confirm/deny this? Seems odd for the Practical
Extraction and REPORT Language to nix' it's own report formatting
ability. :P

- jc

rotaiv wrote:
> 
> I'm not sure I quite understand the way you are attempting to format output
> but I achieved a similar thing using the printf and/or sprintf command.  It
> allows you to format a string with space padded text, specific decimal
> places, left/right justification, etc, etc.  This allows you to line
> everything up in certain columns, etc, etc.
> 
> rotaiv
> 
> At 12/15/00  04:02 PM, MODI,SMITA (HP-NewJersey,ex1) wrote:
> 
> >Hi all,
> >
> >I want to print few records into some file. Each record has some fields so I
> >want to print it in  a such a way that each field or column should start at
> >certain point.
> 
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activeperl

-- 
-------------------------------------------------
James Diggans              Phone:    301.987.1756
Gene Logic, Inc.           FAX:      301.987.1701
[EMAIL PROTECTED]     Cell:     301.908.2477
-------------------------------------------------
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to