Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A set of scripts to translate iChat acronyms' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A set of scripts to translate iChat acronyms
Authored by: galaher on Aug 13, '04 03:10:12PM

I initially had one hash as you suggest, but found that acronyms in my 'dictionary' often had characters that were illegal in the name of a key. e.g. im_acronym11 => "24/7", or im_acronym1 => "::POOF::". I couldn't have 24/7 => "24 hours a day, 7 days a week", so I went with two hashes. Since I scraped my acronyms off the web, it was easier to accommodate those things than try and manually clean up and edit it.



[ Reply to This | # ]
A set of scripts to translate iChat acronyms
Authored by: gancho on Aug 13, '04 10:04:06PM

Any string can be the key of a hash, including "24/7". You just need to quote the key, because smart quotes (=>) only quote what's on the left side if it's a set of word characters.



[ Reply to This | # ]