Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: File Input and Output

by barun (Novice)
on Feb 07, 2005 at 15:38 UTC ( #428697=note: print w/replies, xml ) Need Help??


in reply to File Input and Output

i am running this code to create a new file.But i am simply getting a blank file after runing this code .I am using Ctrl+Z to terminate writing.I hope i m missing something .Can anyone point out my mistake ?
open FILE, ">keylogger.dat";
while(<>){
print FILE $_;
}
close FILE;

Replies are listed 'Best First'.
Re^2: File Input and Output
by barun (Novice) on Feb 08, 2005 at 08:08 UTC
    itś working with ctrl+d

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428697]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (None)
    As of 2021-10-16 06:12 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      My first memorable Perl project was:







      Results (69 votes). Check out past polls.

      Notices?