Hi,

  I need the o/p of 
     perl -v 
   to be redirected to a file test.txt

  open(FILEHANDLE,"> test.txt") || die can't open the file";
print FILEHANDLE perl -v ;

one executing this , I get the following error

Unrecognized file test: -v at D:\test\perl\TEST1.PL line 6.

How to write the o/p of 'perl -v' in the file(test.txt).

Thanks in advance,
jaya

_____________________________________________________________
Get Free Fast Easy email from indiya.com: SIGNUP NOW : http://www.indiya.com

Reply via email to