Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Field Spacing

by greywolf (Priest)
on May 24, 2002 at 18:15 UTC ( #169171=note: print w/ replies, xml ) Need Help??


in reply to Field Spacing

This is simplified but you can make it work for your needs. Some of the other suggestions might be slicker but this should do the trick.

my $size = 30; my $field = 'fred'; my $counter = length($field); while ($counter < $size) { $field .= ' '; $counter++; }
mr greywolf


Comment on Re: Field Spacing
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://169171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-09-01 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (14 votes), past polls