WWW::Chat::Processor - module for processing web chat script into Perl.


webchat documentation  | view source Contained in the webchat distribution.

Index


NAME

Top

WWW::Chat::Processor - module for processing web chat script into Perl.

SYNOPSIS

Top

  use WWW::Chat::Processor;

  my $perl_script = WWW::Chat::Processor::parse ($webchat);

  eval $perl_script;
  warn $@ if $@; 

DESCRIPTION

Top

The webchatpp program is a preprocessor that turns chat scripts into plain perl scripts. When this script is fed to perl it will perform the chatting. The webchat language consist of perl code with some lines interpreted and expanded by WWW::Chat::Processor.

See webchatpp for more details on the syntax of the webchat language.

This module implements the functionality of the webchatpp script in the parse method in order to make it easier to use webchat in your own programs. It also fixes problems the original webchatpp had with being package safe however it retains backwards compatability with the old version.

Basically - it's a huge hack and this could soooo be done better.

SEE ALSO

Top

webchatpp, WWW::Chat, LWP, HTML::Form

COPYRIGHT

Top


webchat documentation  | view source Contained in the webchat distribution.