S
shashibhushan.lanka
Hi,
This is my first post to this group. Please help me out.
print "you are about to write a new file\n";
open FHOUT, ">/root/n1" or die "can't open a new file\n";
while(<>)
{
print FHOUT "$_ \n";
}
#Using ^C to exit the while loop.
#The problem is that it is not writing the contents that are read from
the standatd input to the specified file.
close(FHOUT);
The above program is not writing anything into /root/n1. I am pressing
^C(ctrl -C) to break the while loop( in order to stop input from
standard input).
Please help me.
This is my first post to this group. Please help me out.
print "you are about to write a new file\n";
open FHOUT, ">/root/n1" or die "can't open a new file\n";
while(<>)
{
print FHOUT "$_ \n";
}
#Using ^C to exit the while loop.
#The problem is that it is not writing the contents that are read from
the standatd input to the specified file.
close(FHOUT);
The above program is not writing anything into /root/n1. I am pressing
^C(ctrl -C) to break the while loop( in order to stop input from
standard input).
Please help me.