in reply to Dynamically creating CSS elements
One thing you could do is generate a hash of the names in use keyed by name and with a usage count as the value. Then form the next css name as ".$name" . $names{$name} + 1. Remembering of course to ++$names{$name} afterwards.
|
|---|