Editing
Portal:Artificial Intelligence
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Early AI-style programming in Perl === Before neural networks and LLMs became dominant, much AI programming involved rules, pattern matching, classification, search, and symbolic manipulation. Perl’s regular expressions, hashes, lists, and text-processing style made it well suited for these tasks. One example is `Chatbot::Eliza`, a Perl module implementing the classic ELIZA-style chatbot pattern. The module describes itself as a faithful implementation of the program described by Joseph Weizenbaum, encapsulated as a Perl object for use inside larger programs.<ref>MetaCPAN, “Chatbot::Eliza,” https://metacpan.org/pod/Chatbot::Eliza, accessed July 3, 2026.</ref> ELIZA-style programs are not intelligent in the modern sense, but they are historically important because they show how natural-language interaction, pattern substitution, and conversational illusion could be explored with relatively simple code. Perl has also been used as an interface to logic-programming systems. `Language::Prolog::Yaswi` provides a bidirectional interface between Perl and SWI-Prolog, allowing Perl code to call Prolog and Prolog code to call Perl again.<ref>MetaCPAN, “Language::Prolog::Yaswi,” https://metacpan.org/pod/Language::Prolog::Yaswi, accessed July 3, 2026.</ref> Perl.com also published an article on logic programming with Perl and Prolog, discussing `AI::Prolog` as an accessible way to experiment with Prolog-style rules from Perl.<ref>Perl.com, “Logic Programming with Perl and Prolog,” https://www.perl.com/pub/2005/12/15/perl_prolog.html/, accessed July 3, 2026.</ref> These older interfaces show a recurring Perl pattern: Perl does not need to replace a specialized AI system. It can control it, feed it data, extract results, and integrate those results into real applications.
Summary:
Please note that all contributions to Perl Guilds - Getting Medieval with Perl may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Perl Guilds - Getting Medieval with Perl:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information