2009/11/13 Subhashini <subhashinibasavar...@gmail.com>:
>
> This is the code that i have written
>
>
> #!/usr/bin/perl
> print "ENTER THE WORD IN ENGLISH";
> print "\n";
> $english=<STDIN>;
> print "word =====";
> print "$english";
> print "\n";
> print "***********************************   FRENCH -TO - ENGLISH -
> TRANSLATION    ************************************************";
> system ("dict -d fd-eng-fra $english");
>
> ~
>
> The output i get is as follows:
>
> subhash...@bhaskara:~$ perl english.pl
> ENTER THE WORD IN ENGLISH
> potato
> word =====potato
>
> ***********************************   FRENCH -TO - ENGLISH - TRANSLATION
> ************************************************1 definition found
>
> From English-French Freedict dictionary [fd-eng-fra]:
>
>   potato [pɔteitou]
>      pomme de terre
>
> subhash...@bhaskara:~$

First off thank you John for pointing that my mistake with chomp().

I don't what else I can do for you here Subhashini. Your code doesn't
show any of the modification I have suggested and you have removed the
redirection operator!
Dp.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to