\On Dec 16, 2003, at 1:39 PM, Hemond, Steve wrote:

Hi again,

Thanks for you help with my data structure problem, a hash of hashes
problem did the job :-)

I would like to know how to align text with the print command.

I have four scalar variables to print but I want them to follow their
header's size.

So, if the header is 8 chars long, I would like the output of $user
(which is paul (4 chars) to print 4 more spaces)

How could I do that?

You're looking for printf(). See if this documentation fixes you up:


perldoc -f printf

perldoc -f sprintf

James


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




Reply via email to