Perl is definitely the wrong language to play around with
this kind of thing. OTOH if you want to proceed, there
are two ways to go.
The first is to install Inline and proceed from
there. The second is to use unpack with "P" to get at
what is in a particular spot in the memory of your current
process. You should not be able to get at the memory of
other processes this way.
If you are on a *nix system and have root access you can
play around with /dev/mem to find what memory looks like.
Of course if you wanted a good seed for random numbers,
you are better off either trusting Perl to do a good job,
or using something like Math::Random.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|