Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Format text problem

by nobull (Friar)
on Apr 03, 2005 at 12:46 UTC ( #444495=note: print w/replies, xml ) Need Help??

in reply to Re^2: Format text problem
in thread Format text problem

Any ideas why some of the variables are appearing differently?
No. Perhaps it's something that's happinging after the fact. Try printing out $text before you construct the mail and seeing if it layed out correctly.
I'm not sure what this line is doing:
sprintf('%-'.$nd.'s %-'.$vd.'s',
Rathar than ask us to explain everything you could possibly being having trouble understanding, it would more efficient if you could be more precise about what about this you are finding difficult to understand.
  • Something documentation for the sprintf()
  • The effect of '-' in printf templates?
  • Concatenation of strings using the . operator?
  • Something else...?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2023-10-04 23:47 GMT
Find Nodes?
    Voting Booth?

    No recent polls found