my $s = "This is a string\nThis is line 2\n";
print $s;

The "\n" is interpreted as newline in the code above. But if the
string (i.e. $s) is in a file, it will be printed literally as "\n" -
how do I get Perl to treat it as newline?

/Why Tea


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to