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 works
Thanks for any help.
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 works
Thanks for any help.