[REBOL] perl and dialects
From: jseq:mediaone at: 25-Oct-2001 10:37
I just ran across this link on the use.perl.org site.
http://www.cpan.org/modules/by-category/15_World_Wide_Web_HTML_HTTP_CGI/WWW/
SIMONW/Inline-Webchat-0.5.readme
It's a dialect for writing web automation scripts in Perl.
Gisle Aas' Expect like webchat language is a simple way of
perfomring common web based tasks such as getting a page, checking
for links, submitting data to a form and so on.
This allows you to mix and match Perl with webchat i.e
use Inline::WebChat;
use Data::Dumper;
print Dumper get_hits ('test query');
exit 0;
__WebChat__
sub get_hits {
GET http://www.altavista.com
EXPECT OK F q=$_[0]
CLICK EXPECT OK return @links
}
Although you have the usual horrid perl syntax surrounding it, the
dialecting part looks very slick and REBOL-esque. Now if we could only get
Inline::REBOL ;-)
JS