Hi Group,

Thanks for the help on the last question.
Here is another i am having troubles with.
Its a regular expression question.
I have left out the rest of the script (which is working fine)

I am trying to convert a file with numbers like these

54.35
435.23
1.98
57

to this

00005435
00043523
00000198
00000057

This is what i am trying to use.

print (s\.\\,(sprintf"%09.2f",$number));

I thought that perl would complete the inside brackets first
Then the s\.\\ would operate on the result.

Regards
Stuart Clark



Reply via email to