Hi abhikalrt53,
One way to do this would be to store the ranges in an array, and then use join when outputting the array.
A simpler way to do it would be to add the comma only under certain conditions, i.e. $s .= ',' if ...; - I'm not going to give away the condition because I don't think it's appropriate I do all of your (home)work for you ;-)
Hope this helps,
-- Hauke D
In reply to Re^3: Why this script is not running on windows?
by haukex
in thread Why this script is not running on windows?
by abhikalrt53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |