I looked at the Tie::TextDir info, but i do not think that that is needed. I am just wondering on how i can make the bot add 1 to the $screenname.emo file when someone says Sorry, srry, sry, and as Nkuvu and bbfu pointed out, sory, but, as I said before, I am not sure how to add a number to what the file allready has in it (maybe it doesnt recognize it as only numerals, and can't add anything?) Thanks. | [reply] |
Read the existing number from the file, seek to the file's beginning and write back the new number. However, I really think those are gory details that would much better be hidden in a tied hash; Tie::TextDir may not be what you want, but you can always roll your own.
--
mowgli
| [reply] |