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:~$


I want to redirect the output that i am getting on the console to an output
file.
How do i do this????


regards
Subhashini B



*

*

Reply via email to