open(FILEHANDLE,"<Anita2.txt") or die "Error in opening file";
my $string=getc FILEHANDLE;
print $string;
close(FILEHANDLE) or die "Error in closing filehandle:$!";
Here iam trying to retrieve the very first character in the filehandle.
but its throwing the error:Use of uninitialized value in print
my $string=getc FILEHANDLE;
print $string;
close(FILEHANDLE) or die "Error in closing filehandle:$!";
Here iam trying to retrieve the very first character in the filehandle.
but its throwing the error:Use of uninitialized value in print