Re: Parse numeric string

2010-06-16 Thread John W. Krahn
Gopal Karunakar wrote: You can try using sprintf function to treat the numeric as string.. It already is a string so you don't have to use sprintf. John -- Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite

Re: Parse numeric string

2010-06-16 Thread John W. Krahn
mrwawa wrote: Hi all, Hello, I am new to Perl and am trying to do the following. I have a dataset file with the following example structure. ACRU 12 34 QUAL 28 90 QURU3345 . . . . . QUVE29 88 As you can see, line 3 only contains on 2 columns. "3345" is missing a tab. I

Re: Parse numeric string

2010-06-16 Thread Gopal Karunakar
You can try using sprintf function to treat the numeric as string.. On 15 June 2010 21:10, mrwawa wrote: > Hi all, > > I am new to Perl and am trying to do the following. I have a dataset > file with the following example structure. > > ACRU 12 34 > QUAL 28 90 > QURU3345 > . . . .

Parse numeric string

2010-06-16 Thread mrwawa
Hi all, I am new to Perl and am trying to do the following. I have a dataset file with the following example structure. ACRU 12 34 QUAL 28 90 QURU3345 . . . . . QUVE29 88 As you can see, line 3 only contains on 2 columns. "3345" is missing a tab. I have written code to loop