if I have a numeric literal that starts with one or more zeroes, how do
I increment it without losing the preceeding zeroes?
for example,
$s="0001";
$e="0010";
while ($s <= $e) {
print $s,"\n;
$s++;
}
would give me:
0001
2
3
4
5
6
7
8
9
10
I appologize for making you dumber for having read this, but I know
there must be some easy way of doing this that I am just not seeing.
LB
_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list