develooper Front page | perl.beginners | Postings from October 2009

Re: tabular printing

Thread Previous | Thread Next
From:
Raymond Wan
Date:
October 5, 2009 02:27
Subject:
Re: tabular printing
Message ID:
4AC9BBFB.30600@aist.go.jp

Hi Andreas,


Andreas Moroder wrote:
> I want pro print to screen two strings. The problem ist that the length 
> of the strings are variable, so I get a unreadable output. Even using \t 
> does not help because the lenght can vary from 5 to 15 characters.
> Is there a simple way to expand the first columnt to a fixex size.

I'm not sure if this will help (I've never used it before):

http://perldoc.perl.org/perlform.html

or %s, as Alexandr just posted (that I have used).

Ray



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About