Subject: | calling histogram without $nbins causes program abort |
histogram doesn't check for a valid $nbins argument; if one forgets it
is passed (as undef) to plhist, which (at least on my box) results in
Show quoted text
perldl> $pl->histogram($energy)
*** glibc detected *** double free or corruption (out):
0x00000000020c2e30 ***
Abort
A croak() might be kinder to the calling environment (I'm not sure how
the pdl shell handles this; hopefully somewhat gracefully). Or perhaps a
default value?
Thanks!
Diab