Fun with your name
Just I was exploring the Lingua::EN:: modules in CPAN. I saw a funny module called Lingua::EN::Namegame by ‘Tim Maher’. If you give your name as input it will generate some verses. I will tell you how to install and use it.
Open terminal. Type ‘cpan
’ as root. Type ‘install Lingua::EN::Namegame
’ in the cpan terminal . Follow the instructions. If the installation is successful copy and paste the below given code in to your text editor and save it as ‘namegame.pl
’. Run it an enjoy.
#!/usr/bin/env perl
use Lingua::EN::Namegame;
print "Enter your name \n";
$name = <STDIN>;
chomp($name);
$verse = name2verse ($name);
print $verse,"\n";
print "How is it\n";
Happy hacking !!!!!!!
Migrated from my old blog jaganadhg.freeflux.net
Written on July 13, 2009
The Opinions Expressed In This Post Are My Own And Not Necessarily Those Of My Employer.
[
Fun
Text Processing
Perl
]