On Mon, 04 Feb 2013 18:02:45 +0000, Henry Law <>
wrote:
>On 04/02/13 15:18, George Mpouras wrote:
>> At linux it is ok. At windows does not behave as should ...
>
>Again, forgive me George: you've much more experience than I, but I
>moved my test program to a Windows image and got this:
>
>C:\WIP>type tryout.pl
>use strict;
>use warnings;
>use 5.010;
>
>use Data:
umper;
>
>open FILE, '>test.txt' or die "$^E\n"
>print FILE <<'F';
>\
>\\
>\\\
>F
>close FILE;
>
>C:\WIP>type test.txt
>\
>\\
>\\\
>
>C:\WIP>
>
>I was initially suspicious of the apparent extra return at the end of
>the file but I looked at test.txt with an editor (inside Win) and there
>is only one. The Win shell "type" command seems to add another. So the
>output is the same as the Linux version.
>
>What am I missing?
ANother thing you could try is printing with FORMATs. The output will
be EXACTLY as described on the format. I've used this technique to
create fixed format files for transferral to dependent agencies with
excellent results. Runs the same on *nix or *doze.