Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Format text problem

by nobull (Friar)
on Apr 03, 2005 at 12:46 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found