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

Re: tabular printing

Thread Previous | Thread Next
Raymond Wan
October 5, 2009 02:27
Re: tabular printing
Message ID:

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):

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


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About