|
Posted by szr on April 2, 2008, 12:11 pm
Please log in for more thread options David Filmer wrote:
> Ela wrote:
>> $newline = '\n'
>
> In Perl, single-quotes are not interpolated (meaning $newline is set
> to backslash-n). You would need to use double-quotes (or qq{}) to
> interpolate \n as a newline.
Or a heredoc :-)
print <<_EOF_;
$foo $bar
_EOF_
--
szr
|