Subject: | values not returning properly |
Date: | Mon, 28 Mar 2016 17:08:44 -0500 |
To: | bug-PDL-IO-HDF5 [...] rt.cpan.org |
From: | Daniel Davidson <danield [...] igb.illinois.edu> |
Using hdf5/1.8.11
When I try to write and then retrieve a value it is always returned as 1:
Example:
use PDL::IO::HDF5;
$newfile = new PDL::IO::HDF5("test.hdf");
$test=$newfile->group("/perid");
$test->attrSet('color' => 'blue');
print "Color was ".$test->attrGet('color')."\n";
Returns:
Color was 1
I can successfully read through any attributes I set though through
$test->attrs. If I am doing something wrong, please let me know.
PS
There is also a typo in the synopsis:
|$existingFile||->attSet(||'AttrName'| |=> ||'AttrValue'||); ||# Set
attribute value(s) for file should be:|
|$existingFile||->attrSet(||'AttrName'| |=> ||'AttrValue'||); ||# Set
attribute value(s) for file|