Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
There's more than one way to do things
 
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 rifling through the Monastery: (6)
As of 2014-04-16 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (414 votes), past polls