NAME

MozRepl::Client - MozRepl client class using telnet.

VERSION

version 0.03

METHODS

new($ctx, $args)

Create instance. two arguments.

$ctx

Context object. see MozRepl.

$args

Hash reference.

host

Default value is "localhost".

port

Default value is 4242.

timeout

Default value is 10(sec).

extra_client_args

See Net::Telnet's new method arguments.

setup($ctx, $args)

Two arguments.

$ctx

Context object. see MozRepl.

$args

Hash reference.

host

Default value is "localhost".

port

Default value is 4242.

timeout

Default value is 10(sec).

execute($ctx, $command)

Execute command and return result string or lines as array.

$ctx

Context object. see MozRepl.

$command

Command string.

prompt($prompt)

Telnet prompt string.

quit()

Quit connection.

SEE ALSO

Net::Telnet

AUTHOR

Toru Yamaguchi, <zigorou@cpan.org>

BUGS

Please report any bugs or feature requests to bug-mozrepl-client@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2007 Toru Yamaguchi, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.