Anish Kumar K. wrote:
Hi

Hello,

How will I get the character by character(just like getchar in C) wit PERL

In this program...

open IN,"D:/test.txt";
@file=<IN>;

print "file is $file[0]";

This will print the first line of the txt file...I wanted to get character by 
character...

How will I get it. Please help

You usually do *NOT* need to read a file a character at a time! Why do you think you need to do this?


perldoc -q "How can I read a single character from a file"


John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to