very neatly coded script here, gets a 8 from me.
only thing i could be picky about is that hash would be alot better for this type of script.