Hai
#!user/bin/perl
--------
--------
print("$line.......\n");
-------
------
I want to write inside $line into a file like run.log
How i can pleasw tel me
Thanks
kiran
Hai
#!user/bin/perl
--------
--------
print("$line.......\n");
-------
------
I want to write inside $line into a file like run.log
How i can pleasw tel me
Thanks
kiran
open(FILE, ">run.log");
print FILE "$line\n";
close(FILE);
This would write to run.log
try removing opening and closing brackets in print stmt
print "$line.......\n";
open(FILE, ">run.log");
print FILE "$line\n";
close(FILE);
I have done. Inside run.log also showing $line contents but Previous time the $line contents shown on terminal now it was not showing I want to see $line contents on terminal also
thanks
kiran
To print it twice, print it twice. You don't HAVE to print to the file.