Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Can Perl (without XS) write to a specific machine address?

by Celada (Monk)
on Dec 19, 2005 at 21:46 UTC ( #517906=note: print w/ replies, xml ) Need Help??


in reply to Can Perl (without XS) write to a specific machine address?
in thread What Perl CAN'T do?

The question is not fair.

In any language, unless you are programming in the kernel, you will require the mmap system call in order to access memory mapped hardware. By restricting to what's described in the perlfunc and perlop manpage, you are forbidding use of mmap.

So notwithstanding your restriction, it's actually just as easy to do in Perl as in C: In C, use mmap(), in Perl use Sys::Mmap.


Comment on Re: Can Perl (without XS) write to a specific machine address?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://517906]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-12-22 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls