These are some examples of how to write Perl scripts for X-Chat. Refer to xchatdox2.html for details.