I am searching for a way to handle the following data and am not sure how to start. I have looked at arrays, hashes, hashes of hashes, . . . but I have not come across what I need (or maybe I have and just don't know it). Here is what I have.
IP_Address = domain_1 = seconds
= domain_2 = seconds
= domain_3 = seconds
I hope this data makes sense as I couldn't think of any other way to present it. I am comfortable working with arrays and hashes so it would be great if this could be handled with one or the other, or maybe a combination of both. If not, how could I go about handling this data? Note that the data is being read from a file but I need to manipulate it without creating another file.
Thanks much in advance!
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>
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
Want more info? How to link
or How to display code and escape characters
are good places to start.