diff options
author | franck cuny <franck@lumberjaph.net> | 2010-06-06 16:52:32 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-06-06 16:52:32 +0200 |
commit | 6754c25c01c202ff788ffba6265d98b4b75f4db4 (patch) | |
tree | 8ec3b04963a14462a51479555381cdec361f5f43 /bin | |
download | net-http-console-6754c25c01c202ff788ffba6265d98b4b75f4db4.tar.gz |
initial commit
Diffstat (limited to 'bin')
-rw-r--r-- | bin/http-console | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/http-console b/bin/http-console new file mode 100644 index 0000000..e579945 --- /dev/null +++ b/bin/http-console @@ -0,0 +1,12 @@ +use strict; +use warnings; + +use Term::ReadLine; +use Net::HTTP::Console; + +my $console = Net::HTTP::Console->new_with_options(); + +my $term = Term::ReadLine->new("http::net::console"); +while (defined(my $in = $term->readline($console->prompt))) { + $console->dispatch($in); +} |