Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: aligning text

by LanX (Saint)
on Feb 02, 2018 at 15:24 UTC ( [id://1208329]=note: print w/replies, xml ) Need Help??


in reply to aligning text

Better try using self explaining variable names, it's no fun trying to understand your code like this.

Since your first print seems* to be the price you might be interested in using printf for floats with a sufficiently large format (i.e. max digits of price, see examples for %f in sprintf )

The following names should be aligned then.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

update

*) wrong because @har derives from @ar2 and vice versa. (Jesus!)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-20 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found