Brilliant answer RollyGuy and it works pefectly, almost.
I wish I was proficiant enough in Perl to correct it myself but alas, not yet.
The problem is this like I said in between the code snippets in each statement the last item fom the arrays are missing. However in the code above it is presumed that it is only the first two items that are selected each time, when in fact only the last needs to be omitted.

input: %hash = ( "view0" => "buffersize, size, value, speed", "view1" => "buffersize, size, value, speed", "view2" => "buffersize, size, value, speed" "view3" => "buffersize, size, value, speed") output: view0 full outer join view1 on view0.size = view1.size and view0.buffe +rsize = view1.buffersize and view0.value = view1.value full outer joi +n view2 on view1.size = view2.size and view1.buffersize = view2.buffe +rsize and view1.value = view2.value full outer join view3 on view2.si +ze = view3.size and view2.buffersize = view3.buffersize and view2.val +ue = view3.value

j o h n i r l .

Sum day soon I'Il lern how 2 spelI (nad tYpe)


In reply to Re: Re: Using hash elements to create a string by johnirl
in thread Using hash elements to create a string by johnirl

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.