I used the wrong method of Net::IP, the hexip did it. now it works except a little problem
print "Genre : " . $data->{genre} . "\n"; print "Details : " . $data->{detail} . "\n"; print "Distance : " . $data->{dist} . " hops\n"; print "Link : " . $data->{link} . "\n"; print "Uptime : " . $data->{uptime} . " hrs\n";
print out:
Genre : ARRAY(0x101127d4) Details : ARRAY(0x103826d8) Distance : 0 hops Link : ARRAY(0x1016a60c) Uptime : 4431 hrs
print Dumper($data)
:
$VAR1 = {'link' => [101,116,104,101,114,110,101,116,47,109,111,100,101 +,109,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],'magic' => 233811181,'nat' => 0 +,'score' => -100,'dist' => 0,'genre' => [76,105,110,117,120,0,0,0,0,0 +,0,0,0,0,0,0,0,0,0,0],'fw' => 0,'detail' => [50,46,54,44,32,115,101,1 +08,100,111,109,32,50,46,52,32,40,111,108,100,101,114,44,32,52,41,0,0, +0,0,0,0,0,0,0,0,0,0,0,0],'tos' => [104,105,103,104,32,116,104,114,111 +,117,103,104,112,117,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],'uptime' => 4 +431,'id' => 305419896,'type' => 0,'mflags' => 0,'real' => 1}
What is the correct way to print out those information?
print "Genre : " . @$data->{genre} . "\n";
does not help

In reply to Re^16: p0fq.pl and pack by macli
in thread p0fq.pl and pack? by macli

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.