in reply to File Input and Output
need small help,
when i am trying to read from the file and write to the file it is working perfect, but when i am trying to read from the key board and write to the file the file is not being written. There are no problems with opening files i guess. can u help..
sorry for asking such trivial question. and if u know of any message board for perl please let me know so that i may post my questions there in future.. n here is my code...
_______________
______________________ thanks Gariki.#!/usr/bin/perl -w #open(IN, "input.txt"); open(OUT, ">out.txt"); while( <STDIN>) { print $_; print OUT $_; } #close (IN); close (OUT);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: File Input and Output
by marlowe (Beadle) on Feb 06, 2002 at 02:10 UTC |
In Section
Tutorials