| 1 | 2 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Text::Pipe::Translate::Babelfish; | ||
| 6 | 2 | our $VERSION = '1.100890'; | |
| 7 | # ABSTRACT: Translate text using Babelfish | ||
| 8 | 2 | ▶ | use LWP::UserAgent; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use parent qw(Text::Pipe::Translate); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | ▶ | sub init { |
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
documented
| |||
| 12 | 1 | my $self = shift; | |
| 13 | 1 | $self->SUPER::init(@_); | |
| 14 | 1 | Lingua::Translate::config( | |
| 15 | back_end => "Babelfish", | ||
| 16 | |||
| 17 | # babelfish_uri => 'http://babelfish.altavista.com/tr?', | ||
| 18 | ua => LWP::UserAgent->new, | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | 2 | 1; | |
| 22 | |||
| 23 | |||
| 24 | __END__ | ||