On 2/28/06, Fred B. fredb7@starflam.com wrote:
Following your questions on the list and the answers to it, I did the same yesterday, but with Ruby.
The only difference is that it increments the last id number and insert it instead of "id". That may interest you.
As I mentioned in a previous message, it did interest me, and I have now implemented Fred B's clever reference incrementing in my (Perl) command. It works the same as Mr. B's except that it finds the highest-numbered reference and increments that, rather than assuming that the last reference has the highest number. For organized people, there won't be any difference; for inveterate rewriters and rearrangers like me, it prevents some duplicate numbering.
I've given a full description on my blog: http://www.leancrew.com/all-this/2006/03/new_and_improved_textmate_and.html
-- Dr. Drang