Hi
I have the following code:
open FH, "<", "file.txt";
my $line = <FH>;
print "line = " . $line . "\n";
file.txt contains one line:
one\ntwo
The string $line is printed literally. What do I have to do
to get it to print
one
two
?
I have tried opening the file with :raw :crlf :any but nothing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.