in reply to Re: Re: Re: What is sprintf doing?
in thread What is sprintf doing?

My source data array is actually more like:

Item1 - 2 foo, 2 bar argle bargle Item2 - 0 foo, 1 bar floogle Item3 - 1 foo, 3 bar Item4 - 1 foo, 2 bar choogle


I used the regex in the foreach to remove everything that causes the "uninitialized" and "isn't numeric" messages.

But I still seem to need the regex in the sprintf statement, to make the sort come out right.