Created
August 22, 2014 23:03
-
-
Save peczenyj/6b39c30ed4d5c8821a2d to your computer and use it in GitHub Desktop.
Como converter um texto para a lingua do P ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ perl linguaP.pl "ola tudo bem" | |
PeO PeLa PeTu PeDo PeBem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use feature qw(say); | |
use Lingua::PT::Hyphenate; | |
say join " ", map { "Pe" . ucfirst } map { hyphenate($_) } split /\s+/, $ARGV[0]; |
Obrigado..... esse script.. vai ser muito útil
a escola que meu filho estuda tem enviado textos para meu filho de 7 anos substituindo varias letra "a" e "o" pela letra "x"... vou aproveitar esse script para devolver as tarefas na língua do Pe... meu filho adora a língua do Pe e adorou a ideia.
Gostei
Gostei
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
moderação troll