Rydor has asked for the wisdom of the Perl Monks concerning the following question:

What can one print to in perl? can you, say,

open(PRINTER,'/dev/lp0');$stuff="stuff";print PRINTER "$stuff";

and use that to talk to devices? also, can you use print to a memory location? I'm not too knowledgable in memory, but would something like

print 0x384A "AF83";

work? the memory address was of course made up and so was the hex i sent there and i'm not sure if i need to make a file handle or something. Of course that wouldn't work cause there is no buffer, and i don't feel like getting into all of that, but if i did print to a real address like that, keeping a buffer full of course with real information, would it work? If that is not how one does it, how does one speak to devices and memory locations in perl? There must be some way, and I'd like to know it. It would bring me one step closer to writing TNT2 opengl drivers in perl :)