I have number and need to add the suffix: ‘st’, ‘nd’, ‘rd’, ‘th’. So for example: if the number is 42 the suffix is ‘nd’ , 521 is ‘st’ and 113 is ‘th’ and so on.
I need to do this in perl. Any pointers.
I have number and need to add the suffix: ‘st’, ‘nd’, ‘rd’, ‘th’. So
Share
Try this: