Hi, I'm trying to add an id number to each cell in a bunch of HTML tables, so I'm using the code:
while ($tabdat =~ s/<td /<td id="$idnum" /g) {
$idnum++;
}
This just hangs in a loop, so how do I do this? Apologies if this is really simple, it's Friday afternoon and I've had quite a day. Thanks in advance.
while ($tabdat =~ s/<td /<td id="$idnum" /g) {
$idnum++;
}
This just hangs in a loop, so how do I do this? Apologies if this is really simple, it's Friday afternoon and I've had quite a day. Thanks in advance.