How to add a new line separating the inputs into a Perl script?
Example:
I'm using the following script:
#!/usr/bin/perl
print 'oi' . '\n' . 'oi,de novo'
And I call by bash
as follows:
perl test.pl > a.txt
When opening the file a.txt
I get:
oi\noi, de novo
I would expect the file to be:
oi
oi, de novo