Perl: Writing to Memory

Soldato
Joined
14 Feb 2006
Posts
4,644
Location
Surrey, UK
Hi,

I'm running a little Single Board Computer running Debian and I'm looking at programming something in Perl.

Now, the manual states that the onboard LEDs can be controlled "at physical address location 0x8084_0020." It involves changing bit0 and bit1.

My question: how do I do this in Perl? How can I read from this specific memory location, modify the value, and write it back?

Thanks,
J

Edit: Perhaps this should be in the Linux forum? I don't know, please move if appropriate.
 
Last edited:
Back
Top Bottom