when i print out my http request response using data dumper, this is the data structure

so how can i get all items names after word Product and then after items i get the next number

like: Black Shoes 24

$VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = 'Product'; $VAR2 = ' Black Shoes '; $VAR3 = ' 24 - 80 '; $VAR4 = ' Tshirts '; $VAR5 = undef; $VAR1 = 'Product'; $VAR2 = ' Rice '; $VAR3 = ' 10 - 20 '; $VAR4 = ' Bean '; $VAR5 = undef; $VAR1 = 'Product'; $VAR2 = ' Green Cak Soap '; $VAR3 = ' 40 - 13 '; $VAR4 = ' Water '; $VAR5 = undef; $VAR1 = 'Product'; $VAR2 = ' Salte '; $VAR3 = ' 5 - 7 '; $VAR4 = ' Water '; $VAR5 = undef; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = 'Product'; $VAR2 = ' Banana '; $VAR3 = ' 8 - 5 '; $VAR4 = ' pess '; $VAR5 = undef; $VAR1 = 'Product'; $VAR2 = ' Stone '; $VAR3 = ' 8 - 9 '; $VAR4 = ' Bean '; $VAR5 = undef; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = 'Product'; $VAR2 = ' Ferh '; $VAR3 = ' 4 - 11 '; $VAR4 = ' Kari '; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = undef; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = 'Product'; $VAR2 = ' Rice '; $VAR3 = ' 3 - 11 '; $VAR4 = ' Caasav '; $VAR4 = " C\x{e1}diz "; $VAR5 = undef; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = 'Product'; $VAR2 = ' Soap '; $VAR3 = ' 7 - 11 '; $VAR4 = ' Noti '; $VAR5 = undef; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' '; $VAR1 = undef; $VAR2 = undef; $VAR3 = undef; $VAR4 = undef; $VAR5 = ' ';

In reply to joining words by bigup401

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.