On Tue, 2008-05-20 at 22:30 -0700, Mr. low level newb of stupidity ;) wrote: > hello, I am a, well, not a beginner per say, but rather still a > learner of Perl. I guess you could call me a beginner. anyway, I need > some help with my robot. it is not really Perl help, but you guys > could help with the code, too. I am making a talking robot like > A.L.I.C.E., a robot designed by a guy named Richard s. Wallace, and I > am having trouble deciding what to make him know. he knows basic > stuff, and the coding is somewhat fine, but I was wondering if you > guys could help me out here. he knows how to respond to his and > hellos, also more interesting stuff like his birthday and to > understand when you say something like 'I feel like crap' or > something, but he is still kinda dumb. any advice on how to improve > him with knowledge would be appreciated.
I think ALICE or one of the related projects uses a markup language (something along the lines of "AIML") which facilitates storage and retrieval of information (and I'd guess things like pattern matching). You may want to start there and then incorporate that into your Perl. > > > P.S. the code for what to say and what to say it to is regular > expressions. tell me if you have a better method. > e.g. elsif($reply =~ /\bwhat\b/ and $reply =~ /\btime\b/){ > print"I surely dont know the time."; > talk(); > } > talk is the subroutine that asks for input. > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/