This is covered in the PDL::API docs. As mentioned > previously in this thread, get_dataref and upd_data are > used to access/move piddle data to/from perl routines. > > get_dataref gives you a reference to a perl scalar value > containing the data in the piddle. > > upd_data updates the data pointer in the pdl struct to > match the associated SV (since manipulation at the > perl level could result in memory re-allocations). > > This statement seems to imply that the pdl is updated. However, upd_data seems not to update the pdl when the pdl is a slice (besides, consequently, not-propagating the changes back to the parent(s)). I believe this difference in the behavior of slices, if it is not a bug, should be documented (unless it is already and I missed it).
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
