Anish Kumar K. wrote:
Hi
Hello,
I wanted to read the content of file in one varaible. Now I am doing
open INPUT, "a.txt" | die "Cannot open the file";
^
perldoc perlopentut
while (<INPUT>)
{
$temp=$temp.$_;
}
print "the entire file is $temp";
close(INPUT);
I wanted to get the entire varaible I tried with other way but failed
perldoc -q "How can I read in an entire file all at once"
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>