You can't write to a specified address in perl. Actually, AFAIK you can't
read from a specified address either, so it appears your library gives you a function to retrieve that data for you and put it in a scalar. There should be a corresponding function that writes a scalar back, or you'll have to write it yourself (probably using XS or
Inline::C).