Erlang::Port - Erlang External Port


Erlang-Port documentation  | view source Contained in the Erlang-Port distribution.

Index


NAME

Top

Erlang::Port - Erlang External Port

VERSION

Top

Version 0.04

SYNOPSIS

Top

 use Erlang::Port;

 my $port = Erlang::Port->new(sub{ ... });
 $port->loop();

EXPORT

Top

No functions are exported by this module.

METHODS

Top

$pkg->new(\&CALLBACK);

$port->loop();

Wait request and Process it.

$pkg->encode($obj);

Encode Erlang obj into external sequence.

$pkg->decode($bytes);

Decode external sequence into Erlang object.

$pkg->to_s($obj);

Make string form of $obj.

EXAMPLES

Top

See examples/ directory in this distribution.

examples/perlre.erl has match(String, RegExp) and gsub(String, RegExp, Replacement).

examples/perleval.erl has eval(String) and set(VarName, AnyObject).

AUTHOR

Top

YAMASHINA Hio, <hio at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-erlang-port at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Erlang-Port. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Erlang::Port

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Erlang-Port

* CPAN Ratings

http://cpanratings.perl.org/d/Erlang-Port

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Erlang-Port

* Search CPAN

http://search.cpan.org/dist/Erlang-Port

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Erlang-Port documentation  | view source Contained in the Erlang-Port distribution.