The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

example/perlre.pl - Erlang::Port example

SYNOPSIS

 example/$ erl
 1> perlre:start("perl -Mblib perlre.pl").
 #Port<0.94>
 2> perlre:match("abc", "(\\w+)(.+)").
 ["ab","c"]

DESCRIPTION

Example for Erlang::PerlPort.

perlre:start().

perlre:start(Script).

Start script in an erlang external port. Default is "perlre.pl".

perlre:stop().

Stop port.

perlre:match(String, Regexp).

execute $String =~ $Regexp in perl interpreter.

SEE ALSO

Erlang::Port