Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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

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 examining the Monastery: (3)
As of 2020-06-07 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (42 votes). Check out past polls.

    Notices?