in reply to Right shifted display
printf doesn't work the way you (seem) to think it does. Perhaps you should review the documentation for the format string
Perl: perlintro perlretut perldoc Basic debugging checklist Yes, even you can use CPAN
PerlMonks: How do I post a question effectively? Markup in the Monastery How do I post a question effectively? I know what I mean. Why don't you?
General: How To Ask Questions The Smart Way What every computer scientist should know about floating-point arithmetic
To Be Continued...
I suggest you forget about printf and use a normal print:
print $xmlfile " <spirit:library>$proj_name\_lib</spirit:librar +y>\n"; # ^------^ 8 spaces
Perl: perlintro perlretut perldoc Basic debugging checklist Yes, even you can use CPAN
PerlMonks: How do I post a question effectively? Markup in the Monastery How do I post a question effectively? I know what I mean. Why don't you?
General: How To Ask Questions The Smart Way What every computer scientist should know about floating-point arithmetic
To Be Continued...
In Section
Seekers of Perl Wisdom