Basically you can use the divide modulus % and then eliminate the
digit using normal divide...
but then the cooler way is to convert to BCD and then extract nibble
by nibble...

Regards
Deepak

On 1/9/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote:
Hi all,

I was trying to reverse the digits.

For eg: if i have 50, i wanted to print 05

Can anyone tell me a simple way?

Thanks and Regards,
Dharshana




--
Code Code Code Away

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to