Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 exploiting the Monastery: (8)
As of 2014-07-25 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls