The following generates a raw format file
and then tries to read the data in again.
The readflex call dies while processing the
header file. This version works:
pdl> $a = ones(3)
pdl> $b = zeros(4,2)
pdl> writeflex 'a_and_b', $a, $b
pdl> @data = readflex 'a_and_b'
...but this one doesn't...
pdl> writeflex 'b_and_a', $b, $a
pdl> @data = readflex 'b_and_a'
Runtime error: Bad format in readflex header file (3, 0) at /cygdrive/f/perl/usr_lib/i686-cygwin-thread-multi-64int/PDL/Core.pm line 196
It would be great if the IO logic were easier to
follow. Adding this bug as a reminder to fix.
This is with cygwin perl 5.10.1 and PDL-2.4.9_003