Re: Formatting Question

2008-09-16 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hello Hello, I am sure the answer to this question is very simple. I have a number value which I am inserting into a string I am building. How can I append the number into the string so that it will always be 2 characters in length? In other words if the month is 9, h

Re: Formatting Question

2008-09-16 Thread Dermot
2008/9/17 <[EMAIL PROTECTED]>: > Hello > > I am sure the answer to this question is very simple. I have a number value > which I am inserting into a string I am building. How can I append the number > into the string so that it will always be 2 characters in length? In other > words if the mont

Re: Formatting Question

2008-09-16 Thread Mr. Shawn H. Corey
On Tue, 2008-09-16 at 17:32 -0700, [EMAIL PROTECTED] wrote: > Hello > > I am sure the answer to this question is very simple. I have a number value > which I am inserting into a string I am building. How can I append the number > into the string so that it will always be 2 characters in length?

Formatting Question

2008-09-16 Thread andrewmchorney
Hello I am sure the answer to this question is very simple. I have a number value which I am inserting into a string I am building. How can I append the number into the string so that it will always be 2 characters in length? In other words if the month is 9, how can I make it appear as "09"?

Re: Formatting Question

2006-01-04 Thread Tom Phoenix
On 1/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Let's say I have the following numbers and I want to print them out so they > are formatted in money terms: Have you seen this sub? It's from p. 184 of the llama book (Learning Perl, 4th ed.). sub big_money { my $number = sprintf "%.2

Re: Formatting Question

2006-01-04 Thread Jeremy Vinding
[EMAIL PROTECTED] wrote: Hello, Here's my question. Let's say I have the following numbers and I want to print them out so they are formatted in money terms: examples: 10834.00 1939432.00 to print out as: $10,834.00 $1,939,432.00 How can I do this? I was suspecting that the "p

Formatting Question

2006-01-04 Thread Sanbuah
Hello, Here's my question. Let's say I have the following numbers and I want to print them out so they are formatted in money terms: examples: 10834.00 1939432.00 to print out as: $10,834.00 $1,939,432.00 How can I do this? I was suspecting that the "printf" or "sprintf" function

Re: Formatting Question

2001-08-01 Thread Troy Denkinger
On Wednesday 01 August 2001 18:29, Rasoul Hajikhani wrote: > Can any one tell me a good source for a formatting package? I need to > generate a table and place my text in it for an email program. I have > installed Text::Autoformat but I guess it does not have that capability. Well, to create rep

Formatting Question

2001-08-01 Thread Rasoul Hajikhani
Can any one tell me a good source for a formatting package? I need to generate a table and place my text in it for an email program. I have installed Text::Autoformat but I guess it does not have that capability. Perl's format mechanism suffers from extreme complication to lack of documentation. A