in reply to unique filename
Have a look at Auto-increment and Auto-decrement
In particular: "The auto-increment operator has a little extra builtin magic to it."
Combined with neversaint's suggestion you may be able to dispense with the $i altogether.
As Dolly Parton famously said about looking at the docs: "That's what they're for!". Although she might not have been talking about the docs. :-)
Update
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unique filename
by Skeeve (Parson) on Jul 21, 2006 at 08:13 UTC | |
by gellyfish (Monsignor) on Jul 21, 2006 at 08:27 UTC | |
by wfsp (Abbot) on Jul 21, 2006 at 09:14 UTC |