Hi,

I have an array which reads as follows:

@array = (01, 45,  02, 57,  03);

When i try to print this array, it prints the single digit value as

1, 45, 2, 57, 3

But i want it to print like

01, 45, 02, 57, 03

I can use if condition and then try printing the value as double digit, but
i was thinking of a better way. Can anyone suggest me a more efficient way?

Thanks and Regards,
Dharshana

Reply via email to