a try at implementing selectable callbacks to perl for read/write operations as opposed to whole memory