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)
-
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.