in reply to Re: How to call $PDL::BIGPDL=1?
in thread How to call $PDL::BIGPDL=1?

Got it: when I try this:
$name=$PDL::BIGPDL=zeroes($large_number1,$large_number2);
It works. Thank you.

Replies are listed 'Best First'.
Re^3: How to call $PDL::BIGPDL=1? [use PDL::IO::FastRaw to memory-map instead]
by etj (Priest) on Aug 20, 2021 at 04:29 UTC
    For posterity; the minimum you need to do is:
    $PDL::BIGPDL=1; # true value $name=zeroes($large_number1,$large_number2); # now size not checked
    An even better solution to the problem is to use PDL::IO::FastRaw and memory-map a disk-file, which doesn't allocate any RAM at all:
    use PDL::IO::FastRaw; $name=mapfraw( 'fname', {Creat => 1, Dims => [$large_number1,$large_number2]} );