Hi, suppose I have a file named first.txt from which I want to read. Suppose the text file looks like this:
I like you.
I feel your soul.
Now if I use this:
open cool, "< first.txt";
print <cool>;
the entire file content is printed, but if I use this:
open cool, "< first.txt";
print length(<cool>);
only 12 is printed (the length of the first line only, including newline), whereas it should be 27 (the length of the entire file content), because <cool> contains the entire file content, right, otherwise how could it have printed the entire content? So why is this happening?