App::Translit::String - Perl class for translit-string application.
use App::Translit::String; my $obj = App::Translit::String->new; my $exit_code = $obj->run;
new
my $obj = App::Translit::String->new;
Constructor.
run
my $exit_code = $obj->run;
Run.
Returns 1 for error, 0 for success.
run(): Cannot transliterate string. Error: %s No reverse transliteration.
use strict; use warnings; use App::Translit::String; # Run. exit App::Translit::String->new->run; # Print version. sub VERSION_MESSAGE { print "9.99\n"; exit 0; } # Output: # Usage: /tmp/vm3pgIQWej [-h] [-r] [-t table] [--version] # string # # -h Print help. # -r Reverse transliteration. # -t table Transliteration table (default value is 'ISO 9'). # --version Print version.
use strict; use warnings; use App::Translit::String; # Run. @ARGV = ('Российская Федерация'); exit App::Translit::String->new->run; # Output: # Rossijskaâ Federaciâ
use strict; use warnings; use App::Translit::String; # Run. @ARGV = ('-r', 'Rossijskaâ Federaciâ'); exit App::Translit::String->new->run; # Output: # Российская Федерация
English, Error::Pure, Getopt::Std, Lingua::Translit.
https://github.com/michal-josef-spacek/App-Translit-String.
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2015-2021 Michal Josef Špaček
BSD 2-Clause License
0.09
To install App::Translit::String, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Translit::String
CPAN shell
perl -MCPAN -e shell install App::Translit::String
For more information on module installation, please visit the detailed CPAN module installation guide.