NAME

MozRepl::Plugin::Location - Dump window.location object as possible.

VERSION

version 0.01

SYNOPSIS

use MozRepl;

my $repl = MozRepl->new;
$repl->setup({ plugins => { plugins => [qw/OpenNewTab Location/] } });

$repl->open_new_tab({ url => "http://d.hatena.ne.jp/ZIGOROu/", selected => 1 });

sleep(5);

my $location = $repl->location();
print $location->{href};

METHODS

execute($ctx, $args)

$ctx

Context object. See MozRepl.

$args

Hash reference. See below detail.

all

Defalt 0, return location object dump of current tab. If this value is 1, dump location object from all tabs.

AUTHOR

Toru Yamaguchi, <zigorou@cpan.org>

BUGS

Please report any bugs or feature requests to bug-mozrepl-plugin-location@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.